wiki.sine.space | sinespace

Scripting/SCollider

From wiki.sine.space
Jump to: navigation, search

A base class of all colliders.

Properties

Enabled

bool Enabled {get; set;}

Enable or disable the collider.

Scene = Space.Scene

Cube = Scene.Find("Cube");
Clickable=Cube.AddClickable();
Collider.Enabled = false;

--Set collider disabled.

IsTrigger

bool IsTrigger {get; set;}

Set Collider as a trigger.

Scene = Space.Scene

Cube = Scene.Find("Cube");
Clickable=Cube.AddClickable();
Collider.IsTrigger = true;

--Set collider as a trigger.