Set the gravity vector of the world * @param gravity The gravity vector (in meter per seconds squared) */
| 970 | * @param gravity The gravity vector (in meter per seconds squared) |
| 971 | */ |
| 972 | void PhysicsWorld::setGravity(const Vector3& gravity) { |
| 973 | |
| 974 | mConfig.gravity = gravity; |
| 975 | |
| 976 | RP3D_LOG(mConfig.worldName, Logger::Level::Information, Logger::Category::World, |
| 977 | "Physics World: Set gravity vector to " + gravity.to_string(), __FILE__, __LINE__); |
| 978 | } |
| 979 | |
| 980 | // Set the sleep linear velocity. |
| 981 | /// When the velocity of a body becomes smaller than the sleep linear/angular |
no test coverage detected