• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 45 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0026 秒)

1. 射线形状检测shapeCastAll返回的检测结果只第一次有效 [ 100%]

...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

2. 加载3D场景报错:TypeError: bt.btBvhTriangleMeshShape create is not a function [ 94%]

加载3D场景报错:TypeError: bt.btBvhTriangleMeshShape create is not a function 使用编辑器2.13.1或2.13.2创建官方的3d demo项目,并在进入的场景中增加一个碰撞体,使用官方的测试app进入时,就无法进入了。并且界面上和控制台都有报错。 alert=...

来源: Laya_社区 发布时间: 20230715

3. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 93%]

... 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

4. 如何开启物理引擎?报错enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined [ 91%]

如何开启物理引擎?报错enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined 新手求问。新建了一个3d的示例项目, 想给Box添加物理效果。在编辑模式下按F9调出类库设置添加了有关物理的几个库。结果报错:enum_btConstraintParams_BT_CONSTRAINT...

来源: Laya_社区 发布时间: 20190518

5. 获取sprite对象的 width和height为0 [ 91%]

...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

6. 2.0下资源加载和销毁内存问题 [ 90%]

... 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

7. 引用了laya.physics3D.runtime.js后报enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined [ 89%]

引用了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

8. 请教一个最基本问题: 在项目代码中如何操作场景编辑器中设置的组件? [ 87%]

...如果在项目代码中使用呢?   我已经设置了button的Var 为bt1,在项目代码中写 this.bt1,会提示没有bt1   我在场景编辑器中按f12导出,在项目代码中写 this.bt1,还是会提示没有bt1。我下载了微信飞机ts版本,看了下人家的项目代码...

来源: Laya_社区 发布时间: 20191107

9. 请教一个最基本问题: 在项目代码中如何操作场景编辑器中设置的组件? [ 87%]

...如果在项目代码中使用呢?   我已经设置了button的Var 为bt1,在项目代码中写 this.bt1,会提示没有bt1   我在场景编辑器中按f12导出,在项目代码中写 this.bt1,还是会提示没有bt1。我下载了微信飞机ts版本,看了下人家的项目代码...

来源: Laya_社区 发布时间: 20191108

10. laya.d3.physics.RaycastWheel_API3.0 [ 82%]

...castWheel Hierarchy RaycastWheel Index Constructors constructor Properties bt btWheelPtr worldMat worldPos worldQuat Accessors brake deltaRotation engineForce rotation steeringValue transform Methods getWorldTransform Constructors constructor new RaycastWheel(ptr: number): RaycastWheel Defined in la...

来源: Laya3.0_api 发布时间: 20231115