Table Of Contents

Previous topic

motion.Collision

Next topic

motion.Gravity

This Page

motion.ForceTorque

Constructor

class motion.ForceTorque(presence, force, position, period)

Bases: motion.Acceleration()

Arguments:
  • presence (presence) – The presence to control
  • force (util.Vec3|function(presence)->util.Vec3) – The force to apply
  • position (util.Vec3|presence|visible|function(presence)->util.Vec3) – (optional =presence’s position) The position (in world coordinates) at which to apply the force, as a vector, a visible whose position is tracked, or a function that returns a vector when called. If position is undefined or not given, the position of the presence is used (and therefore no torque is exerted).
  • period (number) – The period at which to change the presence’s velocities when applying force and torque.