Orbit

Inherits from UpdateBehaviour

Declaration

public sealed class Orbit : UpdateBehaviour

Description

Orbits an object around another object with a given speed and radius.

Properties

spaceThe coordinate space in which the object rotates.
centerThe transform the object orbits around. If not assigned, the transform orbits around the origin of the specified coordinate space.
speedThe speed at which the object orbits.
radiusThe distance from the center of the object being orbited.
startAngleThe initial angle in degrees of the orbiting object.
angleThe current angle of the orbiting object in degrees.

Methods

OnUpdateHandles updates of the animation behavior.
Inherited

Properties

updateModeThe update mode of the behavior.