Return a constant pointer to a given RigidBody of the world * @param index Index of a RigidBody in the world * @return Constant pointer to a given RigidBody */
| 1037 | * @return Constant pointer to a given RigidBody |
| 1038 | */ |
| 1039 | const RigidBody* PhysicsWorld::getRigidBody(uint32 index) const { |
| 1040 | |
| 1041 | if (index >= getNbRigidBodies()) { |
| 1042 | |
| 1043 | RP3D_LOG(mConfig.worldName, Logger::Level::Error, Logger::Category::World, |
| 1044 | "Error when getting rigid body: index is out of bounds", __FILE__, __LINE__); |
| 1045 | } |
| 1046 | |
| 1047 | assert(index < mRigidBodies.size()); |
| 1048 | |
| 1049 | return mRigidBodies[index]; |
| 1050 | } |
| 1051 | |
| 1052 | // Return a pointer to a given RigidBody of the world |
| 1053 | /** |
no test coverage detected