SCapsuleCollider
Index
Properties Index
Properties
Center
SVector Center get set
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 upwards
thisObject = Space.Host.ExecutingObject
OnClick = function()
center = thisObject.CapsuleCollider.Center
thisObject.CapsuleCollider.Center = Vector.New(center.X,center.Y + 1, center.Z)
end
thisObject.AddClickable()
thisObject.Clickable.OnClick(OnClick)Direction
int Direction get set
The direction of the capsule.
Height
float Height get set
The height of the capsule measured in the object's local space.
Radius
float Radius get set
The radius of the capsule.
Enabled
bool Enabled get set
Enabled Colliders will collide with other Colliders, disabled Colliders won't.
IsTrigger
bool IsTrigger get set
Is the collider a trigger?
GameObject
SGameObject GameObject get
Returns a reference to the GameObject of this component.
Last updated
Was this helpful?

