wiki.sine.space | sinespace

Difference between revisions of "Scripting/SPhysicsHit"

From wiki.sine.space
Jump to: navigation, search
(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...")
 
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sphysicshit")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The SPhysicsHit struct refers to a single physics hit (usually returned via raycasting)
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sphysicshit
 
+
==Fields==
+
{{ScriptFunction|SGameObject|Object|{ get; }|The object which was hit}}
+
{{ScriptFunction|SVector|Position|{ get; }|Where the physics hit occurred}}
+
{{ScriptFunction|SVector|Normal|{ get; }|The normal of the hit}}
+
{{ScriptFunction|SVector|UV|{ get; }|The UV coordinates of where the hit occured on a mesh}}
+
{{ScriptFunction|SVector|UV2|{ get; }|The UV2 coordinates of where the hit occured on a mesh}}
+
{{ScriptFunction|float|Distance|{ get; }|How far down a ray or from the collider, the hit occured}}
+
 
+
{{Scripting Navbox}}
+

Latest revision as of 08:03, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/sphysicshit