Class motion.Orientation
Extends
motion.Motion.
A controller for manipulating the orientation of a presence. This
is best used for infrequent updates or in combination with an
OrientationVel controller; frequent raw orientation updates will
appear jittery.
Defined in: motion.em.
Constructor Attributes | Constructor Name and Description |
---|---|
motion.Orientation(presence, orientFn, period)
|
- Fields borrowed from class motion.Motion:
- presence
- Methods borrowed from class motion.Motion:
- isSuspended, reset, suspend
Class Detail
motion.Orientation(presence, orientFn, period)
- Parameters:
- {presence} presence
- The presence to control
- {function(presence)->(util.Quaternion|undefined)} orientFn
- A function that should return the new orientation of the presence at any point in time (just return; to leave orientation unchanged)
- {number} period
- (optional =defaultPeriod) The period at which the presence's orientation is updated