Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CharacterVirtual::ExtendedUpdateSettings Struct Reference

Settings struct with settings for ExtendedUpdate. More...

#include <CharacterVirtual.h>

Public Attributes

Vec3 mStickToFloorStepDown { 0, -0.5f, 0 }
 See StickToFloor inStepDown parameter. Can be zero to turn off.
 
Vec3 mWalkStairsStepUp { 0, 0.4f, 0 }
 See WalkStairs inStepUp parameter. Can be zero to turn off.
 
float mWalkStairsMinStepForward { 0.02f }
 See WalkStairs inStepForward parameter. Note that the parameter only indicates a magnitude, direction is taken from current velocity.
 
float mWalkStairsStepForwardTest { 0.15f }
 See WalkStairs inStepForwardTest parameter. Note that the parameter only indicates a magnitude, direction is taken from current velocity.
 
float mWalkStairsCosAngleForwardContact { Cos(DegreesToRadians(75.0f)) }
 Cos(angle) where angle is the maximum angle between the ground normal in the horizontal plane and the character forward vector where we're willing to adjust the step forward test towards the contact normal.
 
Vec3 mWalkStairsStepDownExtra { Vec3::sZero() }
 See WalkStairs inStepDownExtra.
 

Detailed Description

Settings struct with settings for ExtendedUpdate.

Member Data Documentation

◆ mStickToFloorStepDown

Vec3 CharacterVirtual::ExtendedUpdateSettings::mStickToFloorStepDown { 0, -0.5f, 0 }

See StickToFloor inStepDown parameter. Can be zero to turn off.

◆ mWalkStairsCosAngleForwardContact

float CharacterVirtual::ExtendedUpdateSettings::mWalkStairsCosAngleForwardContact { Cos(DegreesToRadians(75.0f)) }

Cos(angle) where angle is the maximum angle between the ground normal in the horizontal plane and the character forward vector where we're willing to adjust the step forward test towards the contact normal.

◆ mWalkStairsMinStepForward

float CharacterVirtual::ExtendedUpdateSettings::mWalkStairsMinStepForward { 0.02f }

See WalkStairs inStepForward parameter. Note that the parameter only indicates a magnitude, direction is taken from current velocity.

◆ mWalkStairsStepDownExtra

Vec3 CharacterVirtual::ExtendedUpdateSettings::mWalkStairsStepDownExtra { Vec3::sZero() }

See WalkStairs inStepDownExtra.

◆ mWalkStairsStepForwardTest

float CharacterVirtual::ExtendedUpdateSettings::mWalkStairsStepForwardTest { 0.15f }

See WalkStairs inStepForwardTest parameter. Note that the parameter only indicates a magnitude, direction is taken from current velocity.

◆ mWalkStairsStepUp

Vec3 CharacterVirtual::ExtendedUpdateSettings::mWalkStairsStepUp { 0, 0.4f, 0 }

See WalkStairs inStepUp parameter. Can be zero to turn off.


The documentation for this struct was generated from the following file: