Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/FAnimPhys
References
| Module | Engine |
| 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
&40;
float DeltaTime,
TArray< FAnimPhysRigidBody &42; > & Bodies,
TArray< FAnimPhysLinearLimit > & LinearLimits,
TArray< FAnimPhysAngularLimit > & AngularLimits,
TArray< FAnimPhysSpring > & Springs,
const FVector & GravityDirection,
const FVector & ExternalForce,
const FVector & ExternalLinearAcc,
int32 NumPreIterations,
int32 NumPostIterations
&41;
Remarks
Performs a physics update on the provided state objects
Parameters
| Name | 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 |