21 lines
433 B
JavaScript
21 lines
433 B
JavaScript
/**
|
|
* Rigid Wheel superset
|
|
* @param body GameLib.D3.RigidBody
|
|
* @param position GameLib.API.Vector3
|
|
* @param axis GameLib.API.Vector3
|
|
* @param direction GameLib.API.Vector3
|
|
* @constructor
|
|
*/
|
|
GameLib.D3.RigidWheel = function(
|
|
body,
|
|
position,
|
|
axis,
|
|
direction
|
|
) {
|
|
this.id = GameLib.Utils.RandomId();
|
|
this.body = body;
|
|
this.position = position;
|
|
this.axis = axis;
|
|
this.direction = direction;
|
|
};
|