大约有 41 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0069 秒)
...3DUtils.COLLISIONFILTERGROUP_ALLFILTER, allowedCcdPenetration = 0.0) { var bt = ILaya3D.Physics3D._bullet; var convexResultCall = this._btAllConvexResultCallback; var convexPosFrom = PhysicsSimulation._btTempVector30; var convexPosTo = PhysicsSimulation._btTempVector31; var convexRotFrom = PhysicsSi...
来源: Laya_社区 发布时间: 20201017
加载3D场景报错:TypeError: bt.btBvhTriangleMeshShape create is not a function 使用编辑器2.13.1或2.13.2创建官方的3d demo项目,并在进入的场景中增加一个碰撞体,使用官方的测试app进入时,就无法进入了。并且界面上和控制台都有报错。 alert=...
来源: Laya_社区 发布时间: 20230715
... this._parseShape(data.shapes); } _onAdded() { var bt = Physics3D._bullet; var btColObj = bt.btCollisionObject_create(); bt.btCollisionObject_setUserIndex(btColObj, this.id); bt.btCollisionObject_forceActivationState(btColObj, PhysicsCompon...
来源: Laya_社区 发布时间: 20200505
如何开启物理引擎?报错enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined 新手求问。新建了一个3d的示例项目, 想给Box添加物理效果。在编辑模式下按F9调出类库设置添加了有关物理的几个库。结果报错:enum_btConstraintParams_BT_CONSTRAINT...
来源: Laya_社区 发布时间: 20190518
...width和height为0 /** * 船 */ class Boat extends Laya.Sprite { private bt:Laya.Sprite; constructor() { super() this.bt = new Laya.Sprite() this.bt.loadImage("res/boat.png") this.addChild(this.bt) } } /** * 游戏背景 */ class BackGround extends Laya.Sprite { //背景图 private bg:Laya.Sprite;...
来源: Laya_社区 发布时间: 20160804
... from "./script/bitmapimg "; private flag:boolean = false; private bt:bitmapimg; private oldurl:string="" /**此处省略btn创建*/ private onClick():void { if(this.flag==false){ let url:string="test2/1.png" if(this.oldurl!=url...
来源: Laya_社区 发布时间: 20181201
引用了laya.physics3D.runtime.js后报enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined ReferenceError: enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined laya.physics3D.runtime.js:364 at a (file:///F:/laya3D/Laya_3D_Demo/bin/libs/laya.physics3D.runtime.js:364:26) at file:///F:/la...
来源: Laya_社区 发布时间: 20190508
...如果在项目代码中使用呢? 我已经设置了button的Var 为bt1,在项目代码中写 this.bt1,会提示没有bt1 我在场景编辑器中按f12导出,在项目代码中写 this.bt1,还是会提示没有bt1。我下载了微信飞机ts版本,看了下人家的项目代码...
来源: Laya_社区 发布时间: 20191107
...如果在项目代码中使用呢? 我已经设置了button的Var 为bt1,在项目代码中写 this.bt1,会提示没有bt1 我在场景编辑器中按f12导出,在项目代码中写 this.bt1,还是会提示没有bt1。我下载了微信飞机ts版本,看了下人家的项目代码...
来源: Laya_社区 发布时间: 20191108
... = this._colliderShape.localOffset; var position = transform.position; var btPosition = PhysicsComponent._btVector30; if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) { var physicPosition = PhysicsComponent._tempVector30; var worldMat = transform.worldMatrix; Laya.Vector3.trans...
来源: Laya_社区 发布时间: 20211104