大约有 71 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0039 秒)
...l) { if(SceneManager.Instance.nowScene.physicsSimulation.rayCast(ray,this.enemyHit)) { console.log("enemyHit->",this.enemyHit); var _enemy=this.enemyHit.collider.owner as Laya.S...
来源: Laya_社区 发布时间: 20231120
...is._rayPt, this._ray); let scene = this.owner.scene as Laya.Scene3D; scene.physicsSimulation.rayCast(this._ray, this._raycastHit); console.log(this._raycastHit.succeeded); if(this._raycastHit.succeeded) console.log(this._raycastHit.collider.owner.name); } GameManager.instance.mainCamera其实就是...
来源: Laya_社区 发布时间: 20190319
...力。 Parameters value: number Returns void simulation get simulation(): PhysicsSimulation Defined in laya/d3/physics/PhysicsComponent.ts:317 模拟器。 Returns PhysicsSimulation Methods _initialize _initialize(): void Inherited from Component._initialize Defined in laya/components/Component.ts:5...
来源: Laya3.0_api 发布时间: 20231115
...Uncaught TypeError: Cannot read property 'isTrigger' of undefined at PhysicsSimulation._updateCollisions (libs/laya.d3.js:15042) at Scene3D._update (libs/laya.d3.js:18977) at Stage.render (libs/laya.core.js:16632) at Stage._loop (libs/laya.core.js:16572) at loop (libs/l...
来源: Laya_社区 发布时间: 20200426
...hideFlags id Methods _initialize _setConnectRigidBody _setOwner destroy getPhysicsSimulation getcurrentForce getcurrentTorque hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate setConnectRigidBody setConstraintEnabled setFrames set...
来源: Laya3.0_api 发布时间: 20231115
...物理射线 在LayaAir 3D中实现射线检测是使用物理模拟器类PhysicsSimulation。 射线检测的方法有4个,分别为射线检测第一个碰撞物体的方法raycast 和 raycastFromTo以及射线检测所有碰撞物体的方法raycastAll和raycastAllFromTo。 检测一个和所...
来源: Laya3.0_文档 发布时间: 20250103
...ror: Laya3D._physics3D.btVector3 is not a constructor preload.js:55 at new PhysicsSimulation (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:12452:27) at new Scene3D (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:69360:28) at BoBingPanelView.__proto.initUI (file:///E:/ycyheroH5/ycyZYW...
来源: Laya_社区 发布时间: 20181014
...hideFlags id Methods _initialize _setConnectRigidBody _setOwner destroy getPhysicsSimulation getcurrentForce getcurrentTorque hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate setConnectRigidBody setConstraintEnabled setFrames set...
来源: Laya3.0_api 发布时间: 20231115
...力。 Parameters value: number Returns void simulation get simulation(): PhysicsSimulation Inherited from PhysicsTriggerComponent.simulation Defined in laya/d3/physics/PhysicsComponent.ts:317 模拟器。 Returns PhysicsSimulation Methods _initialize _initialize(): void Inherited from Component._in...
来源: Laya3.0_api 发布时间: 20231115
...力。 Parameters value: number Returns void simulation get simulation(): PhysicsSimulation Inherited from PhysicsTriggerComponent.simulation Defined in laya/d3/physics/PhysicsComponent.ts:317 模拟器。 Returns PhysicsSimulation Methods _initialize _initialize(): void Inherited from Component._in...
来源: Laya3.0_api 发布时间: 20231115