Skip to main content

Rotator

A class in Root.Township, ATT.Utilities.

Spins a NetworkAxisRotation at a set speed every physics step, using unscaled time.

Constructors​

MemberWhat it is
Rotator()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private float angleToRotatePerSecondRotation speed in degrees per second.
private NetworkAxisRotation axisRotationThe networked axis rotation that is turned.

Methods​

MemberWhat it is
void SetRotationSpeed(float newRotationSpeed)Sets the rotation speed in degrees per second.
1 private and internal method
MemberWhat it is
private void FixedUpdate()Rotates the axis by the speed times the unscaled fixed delta time.

Used in​

Members of other types that take, return or hold a Rotator: