Collider2D
Type | Name | Interface Description |
---|---|---|
Variables | isTangible : boolean | Whether a collision occurs |
Variables | physicsMaterial : PhysicsMaterial | null | Physical Property Material |
Variables | offset : Vector3f | Relative position of the collider center |
Examples
isTangible : boolean
col.isTangible = false;
physicsMaterial : PhysicsMaterial | null
const mat = col.physicsMaterial;
offset : Vector2f
col.offset = new APJS.Vector2f(1, 1);