33 float mFriction = 0.2f;
36 float mGravityFactor = 1.0f;
66 void RemoveFromPhysicsSystem(
bool inLockBodies =
true);
69 void Activate(
bool inLockBodies =
true);
74 void PostSimulation(
float inMaxSeparationDistance,
bool inLockBodies =
true);
77 void SetLinearAndAngularVelocity(
Vec3Arg inLinearVelocity,
Vec3Arg inAngularVelocity,
bool inLockBodies =
true);
80 Vec3 GetLinearVelocity(
bool inLockBodies =
true)
const;
83 void SetLinearVelocity(
Vec3Arg inLinearVelocity,
bool inLockBodies =
true);
86 void AddLinearVelocity(
Vec3Arg inLinearVelocity,
bool inLockBodies =
true);
89 void AddImpulse(
Vec3Arg inImpulse,
bool inLockBodies =
true);
95 void GetPositionAndRotation(
RVec3 &outPosition,
Quat &outRotation,
bool inLockBodies =
true)
const;
101 RVec3 GetPosition(
bool inLockBodies =
true)
const;
107 Quat GetRotation(
bool inLockBodies =
true)
const;
113 RVec3 GetCenterOfMassPosition(
bool inLockBodies =
true)
const;
116 RMat44 GetWorldTransform(
bool inLockBodies =
true)
const;
122 void SetLayer(
ObjectLayer inLayer,
bool inLockBodies =
true);
126 bool SetShape(
const Shape *inShape,
float inMaxPenetrationDepth,
bool inLockBodies =
true);
EAllowedDOFs
Enum used in BodyCreationSettings and MotionProperties to indicate which degrees of freedom a body ha...
Definition AllowedDOFs.h:11
@ TranslationY
Body can move in world space Y axis.
@ TranslationZ
Body can move in world space Z axis.
@ TranslationX
Body can move in world space X axis.
#define JPH_EXPORT
Definition Core.h:275
std::uint64_t uint64
Definition Core.h:496
#define JPH_NAMESPACE_END
Definition Core.h:419
#define JPH_NAMESPACE_BEGIN
Definition Core.h:413
EActivation
Enum used by AddBody to determine if the body needs to be initially active.
Definition EActivation.h:11
@ Activate
Activate the body, making it part of the simulation.
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:43
uint16 ObjectLayer
Definition ObjectLayer.h:16
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition BodyID.h:13
Base class for character class.
Definition CharacterBase.h:54
Base class for configuration of a character.
Definition CharacterBase.h:21
CharacterBaseSettings & operator=(const CharacterBaseSettings &)=default
Definition Character.h:47
BodyID GetBodyID() const
Get the body associated with this character.
Definition Character.h:92
ObjectLayer GetLayer() const
Get the layer of the character.
Definition Character.h:119
Contains the configuration of a character.
Definition Character.h:17
CharacterSettings(const CharacterSettings &)=default
JPH_OVERRIDE_NEW_DELETE CharacterSettings()=default
Constructor.
Virtual interface that allows collecting multiple collision results.
Definition CollisionCollector.h:45
Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.
Definition Mat44.h:13
Definition PhysicsSystem.h:30
Base class for all shapes (collision volume of a body). Defines a virtual interface for collision det...
Definition Shape.h:186