physicsShape#
Defines a 3D object’s physical shape to be used as a world object.
For example:
module YourModule {
physicsShape ramp20segment5w {
mesh = physics/ramp20|Segment5,
translate = 4.0 0.0 0.0,
rotate = 0.0 270.0 0.0,
}
}
Hierarchy#
Valid Parent Blocks:
ID Properties#
This block should have an ID.
Parameters#
mesh#
- Type:
string
The path to the model’s mesh file, relative to the folder media/models_X.
rotate#
- Type:
array (array of float, separator: ‘ ‘)
The rotation of the model, in the format x y z.
translate#
- Type:
array (array of float, separator: ‘ ‘)
The position offset of the model, in the format x y z.