Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
AnySDK
Version: 1.0
Version: 1.1
Version: 1.2
Search
Preparing search index...
The search index is not available
Creator3dAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
physics
PhysicsRayResult
Class PhysicsRayResult
用于保存物理射线检测结果
Hierarchy
PhysicsRayResult
Index
Properties
_collidier
_distance
_hit
Point
Accessors
collider
distance
hit
Point
Methods
assign
clone
Properties
Private
_collidier
_collidier
:
ColliderComponent
|
null
= null
Private
_distance
_distance
:
number
= 0
Private
_hit
Point
_hit
Point
:
Vec3
= new Vec3()
Accessors
collider
get
collider
(
)
:
ColliderComponent
击中的碰撞盒
Returns
ColliderComponent
distance
get
distance
(
)
:
number
距离
Returns
number
hit
Point
get
hitPoint
(
)
:
Vec3
击中点
Returns
Vec3
Methods
assign
assign
(
hitPoint
:
Vec3
, distance
:
number
, collider
:
ColliderComponent
)
:
void
设置射线,此方法由引擎内部使用,请勿在外部脚本调用
Parameters
hitPoint:
Vec3
distance:
number
collider:
ColliderComponent
Returns
void
clone
clone
(
)
:
PhysicsRayResult
克隆
Returns
PhysicsRayResult
Globals
physics
ECapsule
Direction
Box
Collider
Component
Capsule
Collider
Component
Collider
Component
Constant
Force
Physic
Material
Physics
Ray
Result
_collidier
_distance
_hit
Point
collider
distance
hit
Point
assign
clone
Physics
System
Rigid
Body
Component
Sphere
Collider
Component
ICollision
Event
IContact
Equation
ITrigger
Event
Collision
Callback
Collision
Event
Type
Trigger
Callback
Trigger
Event
Type
Generated using
TypeDoc
用于保存物理射线检测结果