Class VariaRandomRotation
Rotates the object randomly around a given axis.
Two sorts of rotation are supported:
- Rotating around the axis (rolling) using min and max.
- Rotating away from the axis (pitch / yaw) using dispersionMin and dispersionMax
Inherited Members
Namespace: Varia
Assembly: cs.temp.dll.dll
Syntax
public class VariaRandomRotation : VariaBehaviour
Fields
axis
Local axis of rotations
Declaration
public Vector3 axis
Field Value
Type | Description |
---|---|
Vector3 |
dispersionMax
Max amount to rotate away from the axis.
Declaration
public float dispersionMax
Field Value
Type | Description |
---|---|
Single |
dispersionMin
Min amount to rotate away from the axis.
Declaration
public float dispersionMin
Field Value
Type | Description |
---|---|
Single |
max
Max amount to rotate around the axis
Declaration
public float max
Field Value
Type | Description |
---|---|
Single |
min
Min amount to rotate around the axis
Declaration
public float min
Field Value
Type | Description |
---|---|
Single |
point
Point to keep fixed during rotation
Declaration
public Vector3 point
Field Value
Type | Description |
---|---|
Vector3 |
Methods
Apply(VariaContext)
Declaration
public override void Apply(VariaContext context)
Parameters
Type | Name | Description |
---|---|---|
VariaContext | context |