Module m.dynamic

Utility functions for working with dynamic collision objects

Functions

rotate (collisionobject_url, force) Rotate a collision object be applying opposing and offset forces
forward (collisionobject_url, force) Move a dynamic collision object in its direction of rotation by applying a force
backwards (collisionobject_url, force) Move a dynamic collision object in the opposite direction of its rotation by applying a force
stop_moving (collisionobject_url) Stop the movemembt of a dynamic collision object by applying a force opposit to the linear velocity and mass of the object
stop_rotating (collisionobject_url) Stop the rotation of a dynamic collision object by applying a force opposite to the angular velocity of the object


Functions

rotate (collisionobject_url, force)
Rotate a collision object be applying opposing and offset forces

Parameters:

  • collisionobject_url
  • force In the format of vmath.vector3(0, force, 0)
forward (collisionobject_url, force)
Move a dynamic collision object in its direction of rotation by applying a force

Parameters:

  • collisionobject_url
  • force In the format of vmath.vector3(0, force, 0)
backwards (collisionobject_url, force)
Move a dynamic collision object in the opposite direction of its rotation by applying a force

Parameters:

  • collisionobject_url
  • force In the format of vmath.vector3(0, force, 0)
stop_moving (collisionobject_url)
Stop the movemembt of a dynamic collision object by applying a force opposit to the linear velocity and mass of the object

Parameters:

  • collisionobject_url
stop_rotating (collisionobject_url)
Stop the rotation of a dynamic collision object by applying a force opposite to the angular velocity of the object

Parameters:

  • collisionobject_url
generated by LDoc 1.4.6 Last updated 2017-11-27 06:48:33