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. More...
 
Vec3 mWalkStairsStepUp { 0, 0.4f, 0 }
 See WalkStairs inStepUp parameter. Can be zero to turn off. More...
 
float mWalkStairsMinStepForward { 0.02f }
 See WalkStairs inStepForward parameter. Note that the parameter only indicates a magnitude, direction is taken from current velocity. More...
 
float mWalkStairsStepForwardTest { 0.15f }
 See WalkStairs inStepForwardTest parameter. Note that the parameter only indicates a magnitude, direction is taken from current velocity. More...
 
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. More...
 
Vec3 mWalkStairsStepDownExtra { Vec3::sZero() }
 See WalkStairs inStepDownExtra. More...
 

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: