Rotator
A class in Root.Township, ATT.Utilities.
Spins a NetworkAxisRotation at a set speed every physics step, using unscaled time.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
NetworkEntityBehaviour
Constructors
| Member | What it is |
|---|---|
Rotator() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private float angleToRotatePerSecond | Rotation speed in degrees per second. |
private NetworkAxisRotation axisRotation | The networked axis rotation that is turned. |
Methods
| Member | What it is |
|---|---|
void SetRotationSpeed(float newRotationSpeed) | Sets the rotation speed in degrees per second. |
1 private and internal method
Used in
Members of other types that take, return or hold a Rotator: