Table Of Contents

Previous topic

motion.ForceTorque

Next topic

motion.LookForward

This Page

motion.Gravity

Constructor

class motion.Gravity(presence, accel, period)

Bases: motion.Acceleration()

Arguments:
  • presence (presence) – The presence to accelerate
  • accel (util.Vec3|number) – (optional =<0, -defaultGravity, 0>) The acceleration of gravity (as either a scalar quantity or a vector). This may be changed later through <code>controller.accel</code>, but only as a vector.
  • period (number) – (optional =defaultPeriod) The period at which the presence’s velocity is updated

Attributes

accel

accel

The acceleration of this gravity controller. Can be modified dynamically.