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
      MonoBehaviour.IsInvoking()
    
    
      MonoBehaviour.CancelInvoke()
    
    
    
    
    
    
    
    
    
    
    
      MonoBehaviour.StopCoroutine(Coroutine)
    
    
    
      MonoBehaviour.StopAllCoroutines()
    
    
    
      MonoBehaviour.useGUILayout
    
    
      MonoBehaviour.runInEditMode
    
    
      Behaviour.enabled
    
    
      Behaviour.isActiveAndEnabled
    
    
    
      Component.GetComponent<T>()
    
    
    
      Component.TryGetComponent<T>(out T)
    
    
    
    
    
    
      Component.GetComponentInChildren<T>()
    
    
    
    
    
    
      Component.GetComponentsInChildren<T>()
    
    
    
    
      Component.GetComponentInParent<T>()
    
    
    
    
    
    
      Component.GetComponentsInParent<T>()
    
    
    
    
    
      Component.GetComponents<T>()
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      Component.transform
    
    
      Component.gameObject
    
    
      Component.tag
    
    
      Object.GetInstanceID()
    
    
      Object.GetHashCode()
    
    
    
      Object.Instantiate(Object, Vector3, Quaternion)
    
    
      Object.Instantiate(Object, Vector3, Quaternion, Transform)
    
    
      Object.Instantiate(Object)
    
    
      Object.Instantiate(Object, Transform)
    
    
    
      Object.Instantiate<T>(T)
    
    
      Object.Instantiate<T>(T, Vector3, Quaternion)
    
    
      Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    
    
      Object.Instantiate<T>(T, Transform)
    
    
    
    
      Object.Destroy(Object)
    
    
    
      Object.DestroyImmediate(Object)
    
    
    
      Object.DontDestroyOnLoad(Object)
    
    
    
      Object.DestroyObject(Object)
    
    
    
    
      Object.FindObjectsOfType<T>()
    
    
      Object.FindObjectOfType<T>()
    
    
    
    
      Object.ToString()
    
    
      Object.name
    
    
      Object.hideFlags
    
  Namespace: Varia
Assembly: Varia.dll
Syntax
[AddComponentMenu("Varia/Varia Random Rotation")]
public class VariaRandomRotation : VariaBehaviourFields
axis
Local axis of rotations
Declaration
public Vector3 axisField Value
| Type | Description | 
|---|---|
| Vector3 | 
dispersionMax
Max amount to rotate away from the axis.
Declaration
public float dispersionMaxField Value
| Type | Description | 
|---|---|
| float | 
dispersionMin
Min amount to rotate away from the axis.
Declaration
public float dispersionMinField Value
| Type | Description | 
|---|---|
| float | 
max
Max amount to rotate around the axis
Declaration
public float maxField Value
| Type | Description | 
|---|---|
| float | 
min
Min amount to rotate around the axis
Declaration
public float minField Value
| Type | Description | 
|---|---|
| float | 
point
Point to keep fixed during rotation
Declaration
public Vector3 pointField Value
| Type | Description | 
|---|---|
| Vector3 | 
Methods
Apply(VariaContext)
Override this to control what happens when all the conditions are met
Declaration
public override void Apply(VariaContext context)Parameters
| Type | Name | Description | 
|---|---|---|
| VariaContext | context |