SCRIPTING API / Physics / RaycastHit
RaycastHit
Result data for a physics raycast.
Kindstruct
NamespaceKroys.EngineScripting
Members9
Source
RaycastHit.csDECLARATION
Declaration
Namespace Kroys.EngineScripting.
Declaration
public struct RaycastHit
REFERENCE
Members
Fields
#public Entity EntityHit entity.
#public Vector3 PointWorld-space hit position.
#public Vector3 NormalWorld-space hit normal.
#public float DistanceDistance from the ray origin to the hit point.
#public GameplayLayer LayerGameplay/surface layer assigned to the hit collider or entity.
#public bool TriggerWhether the hit collider is marked as a trigger.
#public bool IsRagdollA ragdoll body was hit:
Entity is the character and the bone fields name the body's bone.#public int BoneIndexSkeleton bone index of the ragdoll body that was hit, or -1.
#public Entity BoneEntityEntity of the ragdoll bone that was hit, when the rig has bone entities.
Signatures
public Entity Entity public Vector3 Point public Vector3 Normal public float Distance public GameplayLayer Layer public bool Trigger public bool IsRagdoll public int BoneIndex public Entity BoneEntity
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.