大约有 125 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0026 秒)
...: 1、GameUI.ts 31行-36行 给 player碰撞体 设置了一个(Laya.Rigidbody3D)同时 isTrigger =true,isKinematic=true 同时绑定了一个自定义都脚本 PlayerController,脚本里面添加了 onTriggerEnter,onTriggerStay,onTriggerExit 方法,并且在方法内有console.log输出...
来源: Laya_社区 发布时间: 20200728
...nherited Externals Only exported Menu Globals "laya/d3/physicsCannon/CannonRigidbody3D" CannonRigidbody3D Class CannonRigidbody3D Rigidbody3D 类用于创建刚体碰撞器。 Hierarchy CannonPhysicsCollider CannonRigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape ...
来源: Laya3.0_api 发布时间: 20231102
...刚体碰撞器 var rigidBody = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 var boxShape = new Laya.BoxColliderShape(0.75, 0.5, 0.5); //设置盒子的碰撞形状 rigidBody.colliderShape ...
来源: Laya_社区 发布时间: 20201120
...ion = this.tmpVector; let rigidBody = sphere.addComponent(Laya.Rigidbody3D); let sphereShape = new Laya.SphereColliderShape(radius); rigidBody.colliderShape = sphereShape; rigidBody.mass = 1; rigidBody.gravity = new Laya.Vector3(0, 0, 0);//...
来源: Laya_社区 发布时间: 20191009
...件。 Hierarchy PhysicsComponent PhysicsTriggerComponent PhysicsCollider Rigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked canCollideWith ccdMotionThreshold ccdSweptSphereRadius colliderShape collisionGroup destroyed ...
来源: Laya3.0_api 发布时间: 20231115