Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/Animation/AnimPhysicsSolver.h |
Include |
#include "Animation/AnimPhysicsSolver.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Animation/AnimPhysicsSolver.cpp |
static void PhysicsUpdate
(
float DeltaTime,
TArray< FAnimPhysRigidBody * > & Bodies,
TArray< FAnimPhysLinearLimit > & LinearLimits,
TArray< FAnimPhysAngularLimit > & AngularLimits,
TArray< FAnimPhysSpring > & Springs,
const FVector & GravityDirection,
const FVector & ExternalForce,
const FVector & ExternalLinearAcc,
int32 NumPreIterations,
int32 NumPostIterations
)
Performs a physics update on the provided state objects
Parameter |
Description |
---|---|
DeltaTime |
Time for the frame / update |
Bodies |
Bodies to integrate |
LinearLimits |
Linear limits to apply to the bodies |
AngularLimits |
Angular limits to apply to the bodies |
Springs |
Linear/Angular springs to apply to the bodies prior to solving |
NumPreIterations |
Number of times to iterate the limits before performing the integration |
NumPostIterations |
Number of times to iterae the limits after performing the integration |