HitResult | CraytaKit
Skip to main content

HitResult

Functions

Function NameReturn TypeDescriptionTags
GetPosition()VectorGet position of hit in world spaceNone
GetRelativePosition()VectorGet position of hit relative to the Entity hitNone
GetNormal()VectorGet normal direction of hit in world spaceNone
GetRelativeNormal()VectorGet normal direction of the hit relative to the rotation of the Entity hitNone
GetPartName()Vectorget the name of the part of the entity that was hit. For example a headshot on a player character will return 'head'None

Examples

© 2024 CraytaKit