Make the RigidBody::setIsSleeping() method public
This commit is contained in:
parent
3e7b990a07
commit
a769cad359
|
@ -21,6 +21,7 @@ do not hesitate to take a look at the user manual.
|
||||||
- Method RigidBody::applyLocalTorque() to apply a local-space torque to a rigid body
|
- Method RigidBody::applyLocalTorque() to apply a local-space torque to a rigid body
|
||||||
- Method RigidBody::getForce() to get the total manually applied force on a rigid body
|
- Method RigidBody::getForce() to get the total manually applied force on a rigid body
|
||||||
- Method RigidBody::getTorque() to get the total manually applied torque on a rigid body
|
- Method RigidBody::getTorque() to get the total manually applied torque on a rigid body
|
||||||
|
- Method RigidBody::setIsSleeping() is now public in order to wake up or put to sleep a rigid body
|
||||||
- A cone limit can now be set to the ball-and-socket joint (this is useful for ragdolls)
|
- A cone limit can now be set to the ball-and-socket joint (this is useful for ragdolls)
|
||||||
- Bridge scene has been added to the testbed application
|
- Bridge scene has been added to the testbed application
|
||||||
- Ragdoll scene has been added to the testbed application
|
- Ragdoll scene has been added to the testbed application
|
||||||
|
|
|
@ -53,9 +53,6 @@ class RigidBody : public CollisionBody {
|
||||||
|
|
||||||
// -------------------- Methods -------------------- //
|
// -------------------- Methods -------------------- //
|
||||||
|
|
||||||
/// Set the variable to know whether or not the body is sleeping
|
|
||||||
void setIsSleeping(bool isSleeping);
|
|
||||||
|
|
||||||
/// Update whether the current overlapping pairs where this body is involed are active or not
|
/// Update whether the current overlapping pairs where this body is involed are active or not
|
||||||
void resetOverlappingPairs();
|
void resetOverlappingPairs();
|
||||||
|
|
||||||
|
@ -141,6 +138,9 @@ class RigidBody : public CollisionBody {
|
||||||
/// Set the variable to know if the gravity is applied to this rigid body
|
/// Set the variable to know if the gravity is applied to this rigid body
|
||||||
void enableGravity(bool isEnabled);
|
void enableGravity(bool isEnabled);
|
||||||
|
|
||||||
|
/// Set the variable to know whether or not the body is sleeping
|
||||||
|
void setIsSleeping(bool isSleeping);
|
||||||
|
|
||||||
/// Return the linear velocity damping factor
|
/// Return the linear velocity damping factor
|
||||||
decimal getLinearDamping() const;
|
decimal getLinearDamping() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user