Ball ⇐ Objsim

Class representing a sphere.

Kind: global class
Extends: Objsim

new Ball(_radius, _color)

Creates a sphere.

Param Type Description
_radius number radius of the sphere in meters.
_color \* color of the sphere in RGB/Hexadecimal/etc…

ball.setHTM(m)

Sets the homogeneous transformation matrix that represents the position of the object as the position of the object.

Kind: instance method of Ball
Overrides: setHTM

Param Type Description
m object 4x4 math.js homogeneous transformation matrix that represents the position of the object.