Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
|
Public Member Functions | |
SPhysics (SScript sScript) | |
SPhysicsHit[] | RayCast (SVector origin, SVector normal, float distance, SLayerMask layerMask=null) |
Raycasts from origin in direction normal. | |
SPhysicsHit | RayCastSingle (SVector origin, SVector normal, float distance, SLayerMask layerMask=null) |
Returns single raycast hit from origin in direction normal. | |
SPhysicsHit[] | SphereCast (SVector origin, float radius, float distance, SVector direction, SLayerMask layerMask=null) |
Casts a sphere along a ray and returns all detailed information on what were hit. | |
SPhysicsHit[] | CapsuleCast (SVector origin, SVector end, float radius, float distance, SVector up, SLayerMask layerMask=null) |
Casts a capsule against all colliders in the Scene and returns all detailed information on what were hit. | |
SPhysicsHit[] | SphereCast (SVector origin, float radius, float distance, SLayerMask layerMask=null) |
SPhysicsHit[] | CapsuleCast (SVector origin, SVector end, float radius, float distance, SLayerMask layerMask=null) |
SPhysicsHit[] | BoxCast (SVector origin, SVector extents, SVector direction, SQuaternion orientation, float distance, SLayerMask layerMask=null) |
Casts the box along a ray and returns detailed information on what was hit. | |
Properties | |
SVector | Gravity [get, set] |
The gravity applied to all rigid bodies in the Scene. | |
SineSpace.Scripting.Scene.SPhysics.SPhysics | ( | SScript | sScript | ) |
SPhysicsHit[] SineSpace.Scripting.Scene.SPhysics.BoxCast | ( | SVector | origin, |
SVector | extents, | ||
SVector | direction, | ||
SQuaternion | orientation, | ||
float | distance, | ||
SLayerMask | layerMask = null ) |
Casts the box along a ray and returns detailed information on what was hit.
origin | Center of the box. |
extents | Half the size of the box in each dimension. |
direction | The direction in which to cast the box. |
orientation | Rotation of the box. |
distance | The max length of the cast. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
SPhysicsHit[] SineSpace.Scripting.Scene.SPhysics.CapsuleCast | ( | SVector | origin, |
SVector | end, | ||
float | radius, | ||
float | distance, | ||
SLayerMask | layerMask = null ) |
SPhysicsHit[] SineSpace.Scripting.Scene.SPhysics.CapsuleCast | ( | SVector | origin, |
SVector | end, | ||
float | radius, | ||
float | distance, | ||
SVector | up, | ||
SLayerMask | layerMask = null ) |
Casts a capsule against all colliders in the Scene and returns all detailed information on what were hit.
origin | The center of the sphere at the start of the capsule. |
end | The center of the sphere at the end of the capsule. |
radius | The radius of the capsule. |
distance | The max length of the sweep. |
up | The direction into which to sweep the capsule. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
SPhysicsHit[] SineSpace.Scripting.Scene.SPhysics.RayCast | ( | SVector | origin, |
SVector | normal, | ||
float | distance, | ||
SLayerMask | layerMask = null ) |
Raycasts from origin in direction normal.
origin | The position the ray starts from |
normal | This should be a normalized direction vector |
distance | The maximum distance the ray can travel |
SPhysicsHit SineSpace.Scripting.Scene.SPhysics.RayCastSingle | ( | SVector | origin, |
SVector | normal, | ||
float | distance, | ||
SLayerMask | layerMask = null ) |
Returns single raycast hit from origin in direction normal.
origin | The position the ray starts from |
normal | This should be a normalized direction vector |
distance | The maximum distance the ray can travel |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a ray |
SPhysicsHit[] SineSpace.Scripting.Scene.SPhysics.SphereCast | ( | SVector | origin, |
float | radius, | ||
float | distance, | ||
SLayerMask | layerMask = null ) |
SPhysicsHit[] SineSpace.Scripting.Scene.SPhysics.SphereCast | ( | SVector | origin, |
float | radius, | ||
float | distance, | ||
SVector | direction, | ||
SLayerMask | layerMask = null ) |
Casts a sphere along a ray and returns all detailed information on what were hit.
origin | The center of the sphere at the start of the sweep. |
radius | The radius of the sphere. |
distance | The max length of the sweep. |
direction | The direction in which to sweep the sphere. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a sphere. |