(Created page with "==Members== {{ScriptFunction|bool|Enabled|[get, set]|Enabled Colliders.|5= local Object = Space.Scene.Find("SCRIPT_OBJECT")<br> Space.Log(Object.CapsuleCollider.Enabled); }}...") |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Properties== | ==Properties== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ScriptFunction|int|Direction|[get, set]|The direction of the capsule.|5= | + | {{ScriptFunction|SVector|Center|[get, set]|The center of the capsule, measured in the object's local space.|5=<pre>Center = Space.Host.ExecutingObject.CapsuleCollider.Center</pre>|6=<pre></pre>}} |
− | local | + | |
− | + | {{ScriptFunction|int|Direction|[get, set]|The direction of the capsule.|5=<pre> Direction = Space.Host.ExecutingObject.CapsuleCollider.Direction </pre>|6=<pre></pre>}} | |
− | Space. | + | |
− | }} | + | {{ScriptFunction|float|Height|[get, set]|The height of the capsule measured in the object's local space.|5=<pre>Height= Space.Host.ExecutingObject.CapsuleCollider.Height</pre>|6=<pre></pre>}} |
+ | |||
+ | {{ScriptFunction|int|Radius|[get, set]|The radius of the capsule.|5= <pre>Radius = Space.Host.ExecutingObject.CapsuleCollider.Radius</pre>|6=<pre></pre>}} | ||
+ | |||
+ | {{ScriptFunction|bool|Enabled|[get, set]|Enabled Colliders will collide with other Colliders, disabled Colliders won't.|5=<pre>CapsuleCollider.Enabled </pre>|6=<pre></pre>}} | ||
+ | |||
+ | |||
+ | {{ScriptFunction|bool|IsTrigger|[get, set]|Is the collider a trigger?|5= <pre>Space.Host.ExecutingObject.CapsuleCollider.IsTrigger = false</pre>|6=<pre></pre>}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{Scripting Navbox}} | {{Scripting Navbox}} |
The center of the capsule, measured in the object's local space.
Center = Space.Host.ExecutingObject.CapsuleCollider.Center
The direction of the capsule.
Direction = Space.Host.ExecutingObject.CapsuleCollider.Direction
The height of the capsule measured in the object's local space.
Height= Space.Host.ExecutingObject.CapsuleCollider.Height
The radius of the capsule.
Radius = Space.Host.ExecutingObject.CapsuleCollider.Radius
Enabled Colliders will collide with other Colliders, disabled Colliders won't.
CapsuleCollider.Enabled
Is the collider a trigger?
Space.Host.ExecutingObject.CapsuleCollider.IsTrigger = false
|