KROYSDOCS
HomeWhat's newv0.1.0
SCRIPTING API / Physics / RaycastHit

RaycastHit

Result data for a physics raycast.

Kindstruct
NamespaceKroys.EngineScripting
Members9
SourceRaycastHit.cs
DECLARATION

Declaration

Namespace Kroys.EngineScripting.

Declaration
public struct RaycastHit
REFERENCE

Members

Fields
#public Entity Entity
Hit entity.
field
#public Vector3 Point
World-space hit position.
field
#public Vector3 Normal
World-space hit normal.
field
#public float Distance
Distance from the ray origin to the hit point.
field
#public GameplayLayer Layer
Gameplay/surface layer assigned to the hit collider or entity.
field
#public bool Trigger
Whether the hit collider is marked as a trigger.
field
#public bool IsRagdoll
A ragdoll body was hit: Entity is the character and the bone fields name the body's bone.
field
#public int BoneIndex
Skeleton bone index of the ragdoll body that was hit, or -1.
field
#public Entity BoneEntity
Entity of the ragdoll bone that was hit, when the rig has bone entities.
field
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.