The center of the capsule, measured in the object's local space.
Center = Space.Host.ExecutingObject.CapsuleCollider.Center
--clicking this object moves it's Capsule Collider's center one unit upwardsthisObject = Space.Host.ExecutingObjectOnClick=function()center = thisObject.CapsuleCollider.CenterthisObject.CapsuleCollider.Center = Vector.New(center.X,center.Y +1, center.Z)endthisObject.AddClickable() thisObject.Clickable.OnClick(OnClick)
Direction
int Directiongetset
The direction of the capsule.
Direction = Space.Host.ExecutingObject.CapsuleCollider.Direction
--clicking this object increases it's Capsule Collider's direction by one unitthisObject = Space.Host.ExecutingObjectOnClick=function()thisObject.CapsuleCollider.DirectionthisObject.CapsuleCollider.Direction = thisObject.CapsuleCollider.Direction +1endthisObject.AddClickable() thisObject.Clickable.OnClick(OnClick)
Height
float Heightget set
The height of the capsule measured in the object's local space.
--clicking this object increases it's Capsule Collider's height by one unitthisObject = Space.Host.ExecutingObjectOnClick=function()thisObject.CapsuleCollider.HeightthisObject.CapsuleCollider.Height= thisObject.CapsuleCollider.Height+1.0endthisObject.AddClickable() thisObject.Clickable.OnClick(OnClick)
--clicking this object increments it's Capsule Collider's radius by one unit thisObject = Space.Host.ExecutingObjectOnClick=function()thisObject.CapsuleCollider.Radius = thisObject.CapsuleCollider.Radius +1endthisObject.AddClickable() thisObject.Clickable.OnClick(OnClick)
Enabled
bool Enabledgetset
Enabled Colliders will collide with other Colliders, disabled Colliders won't.
--clicking this object toggles it's Capsule Collider between being a Collider vs Trigger ColliderthisObject = Space.Host.ExecutingObjectOnClick=function()thisObject.CapsuleCollider.IsTrigger =not thisObject.CapsuleCollider.IsTriggerendthisObject.AddClickable() thisObject.Clickable.OnClick(OnClick)