Table Of Contents

Previous topic

motion.Motion

Next topic

motion.OrientationAccel

This Page

motion.Orientation

Constructor

class motion.Orientation(presence, orientFn, period)

Bases: motion.Motion()

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