Collider
| Type | Name | Interface Description |
|---|---|---|
| Variables | isTangible: boolean | Whether a collision occurs |
Example
collider.isTangible = false;
| Type | Name | Interface Description |
|---|---|---|
| Variables | physicsMaterial: PhysicsMaterial | null | Physical Property Material |
Example
const mat = collider.physicsMaterial;
| Type | Name | Interface Description |
|---|---|---|
| Variables | center: Vector3f | Collision Body Center Position |
Example
collider.center = new APJS.Vector3f(0, 1, 0);
| Type | Name | Interface Description |
|---|---|---|
| Variables | rotation: Quaternionf | Collider Rotation (Quaternion) |
Example
collider.rotation = new APJS.Quaternionf(0, 0, 0, 1);
| Type | Name | Interface Description |
|---|---|---|
| Variables | eulerAngles: Vector3f (in Degree) | Collider Rotation Euler Angles |
Example
collider.eulerAngles = new APJS.Vector3f(0, 45, 0);
| Type | Name | Interface Description |
|---|---|---|
| Variables | interactable: boolean (can be interact using interactor node) | Whether it is possible to drag with the mouse (using the drag interaction node) |
Example
collider.interactable = false;