Orbit
Class in Zigurous.Animation
Inherits from UpdateBehaviour
Declaration
public sealed class Orbit : UpdateBehaviour
Description
Orbits an object around another object with a given speed and radius.
Properties
space | The coordinate space in which the object rotates. |
center | The transform the object orbits around. If not assigned, the transform orbits around the origin of the specified coordinate space. |
speed | The speed at which the object orbits. |
radius | The distance from the center of the object being orbited. |
startAngle | The initial angle in degrees of the orbiting object. |
angle | The current angle of the orbiting object in degrees. |
Methods
OnUpdate | Handles updates of the animation behavior. |
Inherited
Properties
updateMode | The update mode of the behavior. |