Class DistorterGravity
A Distorter that distorts points based on their distance and direction to the world
center of gravity as defined by WorldCenterOfGravity.
Inheritance
DistorterGravity
Assembly: cs.temp.dll.dll
public class DistorterGravity : Distorter, IComparable<Distorter>
Properties
Declaration
public Vector3 AxisStrength { get; set; }
Property Value
Declaration
public AnimationCurve GravityStrength { get; set; }
Property Value
Type |
Description |
AnimationCurve |
|
Declaration
public Vector3 LocalCenterOfGravity { get; set; }
Property Value
Declaration
public float Radius { get; set; }
Property Value
Declaration
public Vector3 WorldCenterOfGravity { get; set; }
Property Value
Methods
Internal function where position distortion is done
Declaration
protected override Vector3 DistortPointInternal(Vector3 point, float strength)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Overrides
Internal function where scale distortion is done
Declaration
protected override Vector3 DistortScaleInternal(Vector3 point, float strength)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Single |
strength |
|
Returns
Overrides
Declaration
public void OnDrawGizmos()
Implements
IComparable<>