Set the current position and orientation * @param transform The transformation of the body that transforms the local-space * of the body into world-space */
| 391 | * of the body into world-space |
| 392 | */ |
| 393 | void Body::setTransform(const Transform& transform) { |
| 394 | |
| 395 | // Update the transform of the body |
| 396 | mWorld.mTransformComponents.setTransform(mEntity, transform); |
| 397 | |
| 398 | // Update the broad-phase state of the body |
| 399 | updateBroadPhaseState(); |
| 400 | |
| 401 | RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Information, Logger::Category::Body, |
| 402 | "Body " + std::to_string(mEntity.id) + ": Set transform=" + transform.to_string(), __FILE__, __LINE__); |
| 403 | } |
| 404 | |
| 405 | // Return true if the body is active |
| 406 | /** |