Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/RootMotionSource.h |
Include |
#include "GameFramework/RootMotionSource.h" |
struct FRootMotionSourceGroup
Group of Root Motion Sources that are applied
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bHasAdditiveSources |
Whether this group has additive root motion sources |
|
uint8: 1 |
bHasOverrideSources |
Whether this group has override root motion sources |
|
uint8: 1 |
bHasOverrideSourcesWithIgnoreZAccumulate |
Whether this group has override root motion sources that have IgnoreZAccumulate flag |
|
uint8: 1 |
bIsAdditiveVelocityApplied |
True when we had additive velocity applied last tick, checked to know if we should restore LastPreAdditiveVelocity before a Velocity computation |
|
LastAccumulatedSettings |
Aggregate Settings of the last group of accumulated sources |
|
|
LastPreAdditiveVelocity |
Saved off pre-additive-applied Velocity, used for being able to reliably add/remove additive velocity from currently computed Velocity (otherwise we would be removing additive velocity that no longer exists, like if you run into a wall and your Velocity becomes 0 - subtracting the velocity that we added heading into the wall last tick would make you go backwards. With this method we override that resulting Velocity due to obstructions |
|
|
PendingAddRootMotionSources |
Root Motion Sources to be added next frame |
|
|
RootMotionSources |
Root Motion Sources currently applied in this Group |
Name | Description | |
---|---|---|
|
FRootMotionSourceGroup() |
Name | Description | |
---|---|---|
|
~FRootMotionSourceGroup() |
Name | Description | ||
---|---|---|---|
|
AccumulateAdditiveRootMotionVelocity ( |
Helper function for accumulating additive velocity into InOutVelocity |
|
|
AccumulateOverrideRootMotionVelocity ( |
Helper function for accumulating override velocity into InOutVelocity |
|
|
AccumulateRootMotionVelocity ( |
Accumulates contributions for velocity into InOutVelocity for a given type of root motion from this group |
|
|
AccumulateRootMotionVelocityFromSource ( |
Accumulates contributions for velocity into InOutVelocity for a given type of root motion from this group |
|
|
AddStructReferencedObjects ( |
Exposes references to GC system |
|
|
ApplyRootMotionSource ( |
Apply a RootMotionSource to this Group |
|
|
ApplyTimeStampReset ( |
Applies a reset to the start time for each root motion when the time stamp is reset |
|
|
CleanUpInvalidRootMotion ( |
||
|
Clear() |
Clear the contents to return it to "empty" |
|
|
CullInvalidSources() |
Removes any Sources without a valid ID |
|
|
GetOverrideRootMotionRotation ( |
Get rotation output of current override root motion source, returns true if OutRotation was filled |
|
|
TSharedPtr< ... |
GetRootMotionSource ( |
Get a RootMotionSource from this Group by name |
|
TSharedPtr< ... |
GetRootMotionSourceByID ( |
Get a RootMotionSource from this Group by ID |
|
HasActiveRootMotionSources() |
||
|
HasAdditiveVelocity() |
||
|
HasOverrideVelocity() |
||
|
HasOverrideVelocityWithIgnoreZAccumulate() |
||
|
HasRootMotionToApply() |
||
|
HasVelocity() |
||
|
NeedsSimulatedSmoothing() |
Gets whether any active root motion source has been marked to need NetworkSmoothing as a SimulatedProxy |
|
|
NetSerialize ( |
Serialize the root motion sources and their states for this group |
|
|
NetSerializeRMSArray ( |
Helper function for serializing array of root motion sources |
|
|
PrepareRootMotion ( |
Generates root motion by accumulating transforms through current root motion sources. |
|
|
RemoveRootMotionSource ( |
Remove a RootMotionSource from this Group by name |
|
|
RemoveRootMotionSourceByID ( |
Remove a RootMotionSource from this Group by ID |
|
|
SetPendingRootMotionSourceMinStartTimes ( |
Sets the StartTime of all pending root motion sources to be at least this time, can be used on servers to match client-side start times |
|
|
UpdateStateFrom ( |
Update contained Sources to state in matching sources from other group. |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
Comparison operator |
|
|
FRootMotionS... |
operator= ( |
Copy operator - deep copy so it can be used for archiving/saving off moves |
|
operator== ( |
Comparison operator - needs matching Sources along with identical states in those sources |