Members
Enabled
Enabled Colliders.
local Object = Space.Scene.Find("SCRIPT_OBJECT")
Space.Log(Object.CapsuleCollider.Enabled);
IsTrigger
bool IsTrigger
[get, set]
Is the collider a trigger?
local Object = Space.Scene.Find("SCRIPT_OBJECT")
Space.Log(Object.CapsuleCollider.IsTrigger);
Properties
Center
The center of the capsule, measured in the object's local space.
function PrintVector (data)
Space.Log(data.X);
Space.Log(data.Y);
Space.Log(data.Z);
end
local Object = Space.Scene.Find("SCRIPT_OBJECT")
local VectorData = Object.CapsuleCollider.Center;
PrintVector(VectorData)
Direction
The direction of the capsule.
local Object = Space.Scene.Find("SCRIPT_OBJECT")
lObject.CapsuleCollider.Direction = 10;
Space.Log(Object.CapsuleCollider.Direction);
Height
The height of the capsule measured in the object's local space.
local Object = Space.Scene.Find("SCRIPT_OBJECT")
Object.CapsuleCollider.Height= 10;
Space.Log(Object.CapsuleCollider.Height);
Radius
The radius of the capsule.
local Object = Space.Scene.Find("SCRIPT_OBJECT")
Object.CapsuleCollider.Radius= 10;
Space.Log(Object.CapsuleCollider.Radius);
Scripting Portal
|
|
Common
|
|
|
Key Classes
|
|
|
Helper Classes
|
|
|
Scripting samples and tutorials
|
|
|