SPhysicsHit

Index

Properties Index

Property

SGameObject Object get

SVector Position get

SVector Normal get

SVector UV get

SVector UV2 get

float Distance get

bool ContainsHit get

Properties

Object

SGameObject Object get

Property Description

this = Space.Host.ExecutingObject
hit = Space.Physics.RayCastSingle(this.WorldPosition,this.Forward,20)

hitGameObject = hit.Object

Position

SVector Position get

Where the physics hit occurred

Normal

SVector Normal get

The normal of the hit

UV

SVector UV get

The UV coordinates of where the hit occurred on a mesh.

UV2

SVector UV2 get

The UV2 coordinates of where the hit occurred on a mesh.

Distance

float Distance get

How far down a ray or from the collider, the hit occurred

ContainsHit

bool ContainsHit get

Whether it was a hit or not

Last updated

Was this helpful?