Collidable
Variables
Name |
Type |
Description |
---|---|---|
collider |
The collider’s properties. |
Notes
The Collidable contains a ColliderShape structure, which defines its ColliderShapeType and properties.
JSON for the .ntsn - Scene scene file format:
Name |
Type |
Description |
Possible values |
||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
collidable |
Array of Object |
The Collidable Component. |
|
If the only information specified in the scene file is the Collidable’s type, the shape will be defined with default values, which are:
“Box”: A box with an half extent of 0.5 on each axis, which gives it a size of 1.
“Sphere”: A sphere with a radius of 0.5, which gives it a diameter of 1.
“Capsule”: A capsule with a segment length of 0.5 and a radius of 0.25.