FAnimPhysSpring

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Animation/AnimPhysicsSolver.h

Include

#include "Animation/AnimPhysicsSolver.h"

Syntax

struct FAnimPhysSpring

Variables

Name Description

Public variable

FVector

 

Anchor0

Local space anchor positions (in space of Body0 and Body1 respectively)

Public variable

FVector

 

Anchor1

Public variable

FVector

 

AngularTarget

Target in body0 space for the target axis on body1 to reach.

Public variable

AnimPhysTwistAx...

 

AngularTargetAxis

The axis of body1's orientation to match to the angular target.

Public variable

bool

 

bApplyAngular

Whether to apply angular spring force.

Public variable

bool

 

bApplyLinear

Whether to apply linear spring force.

Public variable

FAnimPhysRigidB...

 

Body0

Bodies connected by the spring (Or nullptr for world)

Public variable

FAnimPhysRigidB...

 

Body1

Public variable

float

 

SpringConstantAngular

Sprint constant for angular springs.

Public variable

float

 

SpringConstantLinear

Spring constant for linear springs.

Public variable

FQuat

 

TargetOrientationOffset

Extra orientation applied on top of Body0's orientation to the target direction.

Functions

Name Description

Public function

void

 

ApplyForces

(
    float DeltaTime
)

Applies forces to the bound bodies

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