Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CharacterSettings Class Reference

Contains the configuration of a character. More...

#include <Character.h>

Inheritance diagram for CharacterSettings:
CharacterBaseSettings RefTarget< CharacterBaseSettings >

Public Attributes

JPH_OVERRIDE_NEW_DELETE ObjectLayer mLayer = 0
 Layer that this character will be added to. More...
 
float mMass = 80.0f
 Mass of the character. More...
 
float mFriction = 0.2f
 Friction for the character. More...
 
float mGravityFactor = 1.0f
 Value to multiply gravity with for this character. More...
 
- Public Attributes inherited from CharacterBaseSettings
Vec3 mUp = Vec3::sAxisY()
 Vector indicating the up direction of the character. More...
 
Plane mSupportingVolume { Vec3::sAxisY(), -1.0e10f }
 
float mMaxSlopeAngle = DegreesToRadians(50.0f)
 Maximum angle of slope that character can still walk on (radians). More...
 
bool mEnhancedInternalEdgeRemoval = false
 Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with convex edges. More...
 
RefConst< ShapemShape
 

Additional Inherited Members

- Public Member Functions inherited from CharacterBaseSettings
JPH_OVERRIDE_NEW_DELETE CharacterBaseSettings ()=default
 Constructor. More...
 
 CharacterBaseSettings (const CharacterBaseSettings &inSettings)=default
 
CharacterBaseSettingsoperator= (const CharacterBaseSettings &inSettings)=default
 
virtual ~CharacterBaseSettings ()=default
 Virtual destructor. More...
 
- Public Member Functions inherited from RefTarget< CharacterBaseSettings >
 RefTarget ()=default
 Constructor. More...
 
 RefTarget (const RefTarget &)
 
 ~RefTarget ()
 assert no one is referencing us More...
 
void SetEmbedded () const
 
RefTargetoperator= (const RefTarget &)
 Assignment operator. More...
 
uint32 GetRefCount () const
 Get current refcount of this object. More...
 
void AddRef () const
 Add or release a reference to this object. More...
 
void Release () const
 
- Static Public Member Functions inherited from RefTarget< CharacterBaseSettings >
static int sInternalGetRefCountOffset ()
 INTERNAL HELPER FUNCTION USED BY SERIALIZATION. More...
 
- Protected Attributes inherited from RefTarget< CharacterBaseSettings >
atomic< uint32mRefCount
 Current reference count. More...
 
- Static Protected Attributes inherited from RefTarget< CharacterBaseSettings >
static constexpr uint32 cEmbedded
 A large value that gets added to the refcount to mark the object as embedded. More...
 

Detailed Description

Contains the configuration of a character.

Member Data Documentation

◆ mFriction

float CharacterSettings::mFriction = 0.2f

Friction for the character.

◆ mGravityFactor

float CharacterSettings::mGravityFactor = 1.0f

Value to multiply gravity with for this character.

◆ mLayer

JPH_OVERRIDE_NEW_DELETE ObjectLayer CharacterSettings::mLayer = 0

Layer that this character will be added to.

◆ mMass

float CharacterSettings::mMass = 80.0f

Mass of the character.


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