Shader Collision (Legacy)
- Last UpdatedApr 02, 2025
- 1 minute read
The Collision shader has the following characteristics.
-
Collision
-
Mesh
Explanation
-
This type of mesh is used internally by the collision code.
-
The geometry is by default exported to World Space, unless the bObjectSpace mesh parameter is True.
-
Be careful that if the mesh is in Object Space but is linked to other objects that are then exported to WorldSpace, this could give problems on the transformations.
-
Make sure that if the mesh is in Object Space and is then moved by the motor, if it exits from its sector, the collisions will no longer be detected on this mesh.
Code example
This is a code example for Collision shader.
$Shader
{
szName = Collision
}
Parameters
bObjectSpace
-
Explicitly indicates whether this mesh will be exported to Object Space or World Space, regardless of export parameters.
-
If this parameter is not present, the export parameters will be used, otherwise they will be overridden by this value.
-
Default: The export parameters are used.
-
Range: True / False.