wiki.sine.space | sinespace

Difference between revisions of "Scripting/SSphereCollider"

From wiki.sine.space
Jump to: navigation, search
(Created page with "==Properties== {{ScriptFunction|SVector|Center|[get, set]|The center of the sphere in the object's local space.|5=<pre>Center = Space.Host.ExecutingObject.SphereCollider.Cent...")
(No difference)

Revision as of 18:41, 19 January 2022

Properties

Center

SVector Center [get, set]

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

Center = Space.Host.ExecutingObject.SphereCollider.Center


Size

SVector Size [get, set]

The size of the sphere.

Size= Space.Host.ExecutingObject.SphereCollider.Size


Enabled

bool Enabled [get, set]

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

Space.Host.ExecutingObject.SphereCollider.Enabled = false


IsTrigger

bool IsTrigger [get, set]

Is the collider a trigger?

Space.Host.ExecutingObject.SphereCollider.Enabled = true