wiki.sine.space | sinespace

Scripting/SCapsuleCollider

From wiki.sine.space
Revision as of 18:47, 19 January 2022 by Voidtech (Talk | contribs)

Jump to: navigation, search



Properties

Center

SVector Center [get, set]

The center of the capsule, measured in the object's local space.

Center = Space.Host.ExecutingObject.CapsuleCollider.Center


Direction

int Direction [get, set]

The direction of the capsule.

 Direction = Space.Host.ExecutingObject.CapsuleCollider.Direction 


Height

float Height [get, set]

The height of the capsule measured in the object's local space.

Height= Space.Host.ExecutingObject.CapsuleCollider.Height


Radius

int Radius [get, set]

The radius of the capsule.

Radius = Space.Host.ExecutingObject.CapsuleCollider.Radius


Enabled

bool Enabled [get, set]

Enabled Colliders will collide with other Colliders, disabled Colliders won't.

CapsuleCollider.Enabled 



IsTrigger

bool IsTrigger [get, set]

Is the collider a trigger?

Space.Host.ExecutingObject.CapsuleCollider.IsTrigger = false