RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Drones

BodyRotation Class

A component that allows the model to be rotated along the Z-axis.
May be useful to certain custom drones and some behavioral effects.

public class BodyRotation

Inheritance UnityEngine.MonoBehaviour 🡒 BodyRotation

Fields  
accelerate A flag to toggle if the model should accelerate in rotating.
acceleration The rate at which the rotation speed will accelerate.
maxRotationSpeed The maximum rotation speed that the model can achieve.
rotationDirection The direction of the rotation. This should only be 1, 0 or -1.
Anything less or greater will cause faster rotation. 0 will not let it rotate.
rotationSpeed The constant base speed of which the object will rotate around the Z-axis.