SSphereCollider

Index

Properties Index

Property Name

SVector Center get set

float Radius get set

bool Enabled get set

bool IsTrigger get set

SGameObject GameObject get

Properties

Center

SVector Center get set

The center of the sphere in the object's local space.

Center = Space.Host.ExecutingObject.SphereCollider.Center
--clicking this object moves it's Sphere Collider's center one unit upwards

thisObject = Space.Host.ExecutingObject

OnClick = function()
center = thisObject.SphereCollider.Center

thisObject.SphereCollider.Center = Vector.New(center.X,center.Y + 1, center.Z)

end

thisObject.AddClickable() 
thisObject.Clickable.OnClick(OnClick)

Radius

float Radius get set

The radius of the sphere measured in the object's local space.

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

Property Description

Last updated

Was this helpful?