Merge branch 'master' into develop
This commit is contained in:
commit
6d7d0d7a23
|
@ -395,7 +395,7 @@ class PhysicsWorld {
|
||||||
Vector3 getGravity() const;
|
Vector3 getGravity() const;
|
||||||
|
|
||||||
/// Set the gravity vector of the world
|
/// Set the gravity vector of the world
|
||||||
void setGravity(Vector3& gravity);
|
void setGravity(const Vector3& gravity);
|
||||||
|
|
||||||
/// Return if the gravity is on
|
/// Return if the gravity is on
|
||||||
bool isGravityEnabled() const;
|
bool isGravityEnabled() const;
|
||||||
|
|
|
@ -975,7 +975,7 @@ void PhysicsWorld::setNbIterationsPositionSolver(uint nbIterations) {
|
||||||
/**
|
/**
|
||||||
* @param gravity The gravity vector (in meter per seconds squared)
|
* @param gravity The gravity vector (in meter per seconds squared)
|
||||||
*/
|
*/
|
||||||
void PhysicsWorld::setGravity(Vector3& gravity) {
|
void PhysicsWorld::setGravity(const Vector3& gravity) {
|
||||||
|
|
||||||
mConfig.gravity = gravity;
|
mConfig.gravity = gravity;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user