|
|
(9 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | ==Members==
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/scapsulecollider |
− | | + | |
− | {{ScriptFunction|bool|Enabled|[get, set]|Enabled Colliders.|5=
| + | |
− | local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
| + | |
− | Space.Log(Object.CapsuleCollider.Enabled);
| + | |
− | }}
| + | |
− | | + | |
− | | + | |
− | {{ScriptFunction|bool|IsTrigger|[get, set]|Is the collider a trigger?|5=
| + | |
− | local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
| + | |
− | Space.Log(Object.CapsuleCollider.IsTrigger);
| + | |
− | }}
| + | |
− | | + | |
− | | + | |
− | ==Properties==
| + | |
− | {{ScriptFunction|SVector|Center|[get, set]|The center of the capsule, measured in the object's local space.|5=
| + | |
− | function PrintVector (data)<br>
| + | |
− | Space.Log(data.X);<br>
| + | |
− | Space.Log(data.Y);<br>
| + | |
− | Space.Log(data.Z);<br>
| + | |
− | end<br>
| + | |
− | local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
| + | |
− | local VectorData = Object.CapsuleCollider.Center;<br>
| + | |
− | PrintVector(VectorData)
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|int|Direction|[get, set]|The direction of the capsule.|5=
| + | |
− | local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
| + | |
− | lObject.CapsuleCollider.Direction = 10;<br>
| + | |
− | Space.Log(Object.CapsuleCollider.Direction);
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|float|Height|[get, set]|The height of the capsule measured in the object's local space.|5=
| + | |
− | local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
| + | |
− | Object.CapsuleCollider.Height= 10;<br>
| + | |
− | Space.Log(Object.CapsuleCollider.Height);
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|int|Radius|[get, set]|The radius of the capsule.|5=
| + | |
− | local Object = Space.Scene.Find("SCRIPT_OBJECT")<br>
| + | |
− | Object.CapsuleCollider.Radius= 10;<br>
| + | |
− | Space.Log(Object.CapsuleCollider.Radius);
| + | |
− | }}
| + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |