FAnimPhys::PhysicsUpdate

Performs a physics update on the provided state objects

Windows
MacOS
Linux

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

Syntax

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
)

Remarks

Performs a physics update on the provided state objects

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss