Box ⇐ Objsim
Class representing a cuboid
Kind: global class
Extends: Objsim
new Box(_width, _height, _depth, _color)
Creates a cuboid.
Param | Type | Description |
---|---|---|
_width | number | width of the cuboid in meters. |
_height | number | height of the cuboid in meters. |
_depth | number | depth of the cuboid in meters. |
_color | \* | color of the cuboid in RGB/Hexadecimal/etc… |
box.setHTM(m)
Sets the homogeneous transformation matrix that represents the position of the object as the position of the object.
Kind: instance method of Box
Overrides: setHTM
Param | Type | Description |
---|---|---|
m | object | 4x4 math.js homogeneous transformation matrix that represents the position of the object. |