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

大约有 71 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

61. 摄像机的viewportPointToRay报错 [ 45%]

....viewportPointToRay(this.pointRay, this.ray); (this.owner as Laya.Scene3D).physicsSimulation.rayCast(this.ray,this.hitresult); console.log(Laya.MouseManager.instance.mouseX + " -=----------" + Laya.MouseManager.instance.mouseY); if (this.hitresult.succeeded) { console.log(this.hitresult.collider.own...

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

62. Cannot read property 'rayCast' of undefined [ 44%]

...s.point, this.ray); var out = new Laya.CannonHitResult(); this.scene.cannonPhysicsSimulation.rayCast(this.ray,out); if(out.succeeded) { console.log(111); } } } 附件 : --> web.rar 2020-09-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

63. laya.d3.physics.CharacterController [ 41%]

...gFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] 获取模拟器。 PhysicsComponent  stepHeight : Number 获取角色行走的脚步高度,表示可跨越的最大高度。 CharacterController  upAxis : Vector3 获取角色的Up轴。 Cha...

来源: Laya2.0_api 发布时间: 20190513

64. laya.d3.physics.CharacterController_API3.0 [ 39%]

...力。 Parameters value: number Returns void simulation get simulation(): PhysicsSimulation Inherited from PhysicsTriggerComponent.simulation Defined in laya/d3/physics/PhysicsComponent.ts:317 模拟器。 Returns PhysicsSimulation stepHeight get stepHeight(): number set stepHeight(value: number): v...

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

65. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 36%]

...nitAllConstraintInfo _initialize _setConnectRigidBody _setOwner destroy getPhysicsSimulation getcurrentForce getcurrentTorque hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate setAxis setConnectRigidBody setConstraintEnabled setOv...

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

66. laya.d3.physics.Rigidbody3D_API3.0 [ 33%]

...力。 Parameters value: number Returns void simulation get simulation(): PhysicsSimulation Inherited from PhysicsTriggerComponent.simulation Defined in laya/d3/physics/PhysicsComponent.ts:317 模拟器。 Returns PhysicsSimulation sleepAngularVelocity get sleepAngularVelocity(): number set sleepAng...

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

67. laya.d3.physics.Rigidbody3D [ 32%]

...gFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] 获取模拟器。 PhysicsComponent  sleepAngularVelocity : Number 获取刚体睡眠的角速度阈值。 Rigidbody3D  sleepLinearVelocity : Number 获取刚体睡眠的线速度阈值。 Rig...

来源: Laya2.0_api 发布时间: 20190513

68. rigidBody.applyForce 物体不会移动 [ 31%]

...ointToRay(this.point, this._ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this._ray, this._outHitResult); //如果碰撞到物体 if (this._outHitResult.succeeded) { //删除碰撞到的物体 this.text.text = "点击到了" + this._outHitResult.collider.owner.name; } } } ...

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

69. laya.d3.core.scene.Scene3D_API3.0 [ 29%]

...lTexRGBD is3D lightmaps mask mouseEnabled mouseX mouseY numChildren parent physicsSimulation pivotX pivotY reflectionIntensity rotation scaleX scaleY scene scene2D sceneRenderableManager scrollRect shadowMapFrequency skewX skewY skyRenderer stage staticCache texture timer transform url viewport visi...

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

70. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 20%]

...oint,ray); //拿到射线碰撞的物体 let outs : any[] = []; this.scene.physicsSimulation.rayCastAll(ray,outs); //如果碰撞到物体 if (outs.length !== 0) { for (let i = 0; i < outs.length; i++){ //在射线击中的位置添加一个立方体 let box = new Laya.MeshSprite3D(Laya.Primitive...

来源: Laya3.0_文档 发布时间: 20231214