|
enum | UpdateMethods { UpdateMethods.Update,
UpdateMethods.LateUpdate
} |
| the possible methods this object can update at More...
|
|
enum | PossibleAccelerationType { PossibleAccelerationType.ConstantSpeed,
PossibleAccelerationType.EaseOut,
PossibleAccelerationType.AnimationCurve
} |
| the possible movement types More...
|
|
enum | CycleOptions {
CycleOptions.BackAndForth,
CycleOptions.Loop,
CycleOptions.OnlyOnce,
CycleOptions.StopAtBounds,
CycleOptions.Random
} |
| the possible cycle options More...
|
|
enum | MovementDirection { MovementDirection.Ascending,
MovementDirection.Descending
} |
| the possible movement directions More...
|
|
enum | UpdateModes { UpdateModes.Update,
UpdateModes.FixedUpdate,
UpdateModes.LateUpdate
} |
| whether progress on the pass should be made at update, fixed update or late update More...
|
|
enum | AlignmentModes { AlignmentModes.None,
AlignmentModes.ThisRotation,
AlignmentModes.ParentRotation
} |
| whether to align the path on nothing, this object's rotation, or this object's parent's rotation More...
|
|
|
UpdateMethods | UpdateMethod = UpdateMethods.Update |
|
Vector3 | DebugCurrentSpeed |
| a debug display of this platform's current speed More...
|
|
CycleOptions | CycleOption |
|
MovementDirection | LoopInitialMovementDirection = MovementDirection.Ascending |
| the initial movement direction : ascending > will go from the points 0 to 1, 2, etc ; descending > will go from the last point to last-1, last-2, etc More...
|
|
List< MMPathMovementElement > | PathElements |
| the points that make up the path the object will follow More...
|
|
AlignmentModes | AlignmentMode = AlignmentModes.None |
| whether to align the path on nothing, this object's rotation, or this object's parent's rotation More...
|
|
float | MovementSpeed = 1 |
| the movement speed More...
|
|
PossibleAccelerationType | AccelerationType = PossibleAccelerationType.ConstantSpeed |
| the movement type of the object More...
|
|
AnimationCurve | Acceleration = new AnimationCurve(new Keyframe(0,1f),new Keyframe(1f,0f)) |
| the acceleration to apply to an object traveling between two points of the path. More...
|
|
UpdateModes | UpdateMode = UpdateModes.Update |
| the chosen update mode (update, fixed update, late update) More...
|
|
float | MinDistanceToGoal = .1f |
| the minimum distance to a point at which we'll arbitrarily decide the point's been reached More...
|
|
|
override void | Update () |
| On Update we compute our speed if needed More...
|
|
override void | LateUpdate () |
| On Late Update we compute our speed if needed, and store our position More...
|
|
virtual void | ComputeSpeed () |
| Computes the speed of this platform based on its current position and its position last frame More...
|
|
virtual void | Awake () |
| Initialization More...
|
|
virtual void | Start () |
| On Start we store our initial position More...
|
|
virtual void | Initialization () |
| Flag inits, initial movement determination, and object positioning More...
|
|
virtual void | FixedUpdate () |
|
virtual void | PointReached () |
| Override this to describe what happens when a point is reached More...
|
|
virtual void | EndReached () |
| Override this to describe what happens when the end of the path is reached More...
|
|
virtual void | ExecuteUpdate () |
| On update we keep moving along the path More...
|
|
virtual void | Move () |
| Moves the object and determines when a point has been reached More...
|
|
virtual void | OnDrawGizmos () |
| On DrawGizmos, we draw lines to show the path the object will follow More...
|
|
◆ UpdateMethods
the possible methods this object can update at
Enumerator |
---|
Update | |
LateUpdate | |
◆ ComputeSpeed()
virtual void MoreMountains.CorgiEngine.MovingPlatformFree.ComputeSpeed |
( |
| ) |
|
|
protectedvirtual |
Computes the speed of this platform based on its current position and its position last frame
◆ LateUpdate()
override void MoreMountains.CorgiEngine.MovingPlatformFree.LateUpdate |
( |
| ) |
|
|
protectedvirtual |
◆ Update()
override void MoreMountains.CorgiEngine.MovingPlatformFree.Update |
( |
| ) |
|
|
protectedvirtual |
◆ _newSpeed
Vector3 MoreMountains.CorgiEngine.MovingPlatformFree._newSpeed |
|
protected |
◆ DebugCurrentSpeed
Vector3 MoreMountains.CorgiEngine.MovingPlatformFree.DebugCurrentSpeed |
a debug display of this platform's current speed
◆ UpdateMethod
the selected update method for this object depending on how you move your object (animation, script, etc) you may want to pick one over the other, to ensure that speed gets computed at the right time If you're using an animator to move this MovingPlatformFree, you'll probably want to set its UpdateMode on its Animator component to "Animate Physics"
The documentation for this class was generated from the following file: