27 lines
713 B
Plaintext
27 lines
713 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/CosmeticRotationBehaviour.html
|
|
Title: People Playground Modding - CosmeticRotationBehaviour
|
|
==================================================
|
|
|
|
public class CosmeticRotationBehaviour
|
|
Inherits MonoBehaviour
|
|
Continuously rotates a transform with velocity and acceleration
|
|
Nested types
|
|
CosmeticRotationBehaviour.RotAxis
|
|
Fields
|
|
public RotAxis Axis
|
|
The axis to rotate on
|
|
|
|
public Vector3 Offset
|
|
The offset of the rotation
|
|
|
|
public float RotationSpeedTarget
|
|
The target rotation speed
|
|
|
|
public float Dampening
|
|
Angular velocity dampening value from 0.0 to 1.0
|
|
|
|
public float Acceleration
|
|
The current acceleration
|
|
|
|
public bool ShouldRotate
|
|
Should the acceleration be applied? |