PhysicsRayResult 类型
用于保存物理射线检测结果
索引
属性(properties)
方法
Details
属性(properties)
hitPoint
击中点
| meta | description |
|---|---|
| 类型 | Vec3 |
| 定义于 | cocos2d/core/3d/physics/framework/physics-ray-result.ts:41 |
distance
距离
| meta | description |
|---|---|
| 类型 | number |
| 定义于 | cocos2d/core/3d/physics/framework/physics-ray-result.ts:53 |
collider
击中的碰撞盒
| meta | description |
|---|---|
| 类型 | Collider3D |
| 定义于 | cocos2d/core/3d/physics/framework/physics-ray-result.ts:65 |
方法
_assign
设置射线,此方法由引擎内部使用,请勿在外部脚本调用
| meta | description |
|---|---|
| 定义于 | cocos2d/core/3d/physics/framework/physics-ray-result.ts:81 |
参数列表
hitPointVec3distancenumbercolliderCollider3D
clone
克隆
| meta | description |
|---|---|
| 定义于 | cocos2d/core/3d/physics/framework/physics-ray-result.ts:97 |