Scripting/SPhysicsHit

From sine.space Wiki
Revision as of 14:41, 17 January 2017 by Sinewave (Talk | contribs) (Created page with "The SPhysicsHit struct refers to a single physics hit (usually returned via raycasting) ==Fields== {{ScriptFunction|SGameObject|Object|{ get; }|The object which was hit}} {{S...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The SPhysicsHit struct refers to a single physics hit (usually returned via raycasting)

Fields

Object

SGameObject Object { get; }

The object which was hit

No example provided yet

Position

SVector Position { get; }

Where the physics hit occurred

No example provided yet

Normal

SVector Normal { get; }

The normal of the hit

No example provided yet

UV

SVector UV { get; }

The UV coordinates of where the hit occured on a mesh

No example provided yet

UV2

SVector UV2 { get; }

The UV2 coordinates of where the hit occured on a mesh

No example provided yet

Distance

float Distance { get; }

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

No example provided yet