Table Of Contents

Previous topic

motion.OrientationVel

Next topic

motion.Spring

This Page

motion.Position

Constructor

class motion.Position(presence, posFn, period)

Bases: motion.Motion()

Arguments:
  • presence (presence) – The presence to control
  • posFn (function(presence)->(util.Vec3|undefined)) – A function that should return the new position of the presence at any point in time (just return; to leave position unchanged)
  • period (number) – (optional =defaultPeriod) The period at which the presence’s position is updated