PhysicsRayResult
Class
Used to store physical ray detection results
Index
Properties
Methods
Details
Properties
hitPoint
Hit the point
meta | description |
---|---|
Type | Vec3 |
Defined in | cocos2d/core/3d/physics/framework/physics-ray-result.ts:41 |
distance
Distance
meta | description |
---|---|
Type | number |
Defined in | cocos2d/core/3d/physics/framework/physics-ray-result.ts:53 |
collider
Hit the collision box
meta | description |
---|---|
Type | Collider3D |
Defined in | cocos2d/core/3d/physics/framework/physics-ray-result.ts:65 |
Methods
_assign
Set up ray. This method is used internally by the engine. Do not call it from an external script
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/framework/physics-ray-result.ts:81 |
Parameters
hitPoint
Vec3distance
numbercollider
Collider3D
clone
Clone
meta | description |
---|---|
Defined in | cocos2d/core/3d/physics/framework/physics-ray-result.ts:97 |