mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-11-09 01:15:35 +00:00
Support get body state for deformable objects so that it retrieves the best fit rigid transform
This commit is contained in:
@@ -7482,7 +7482,8 @@ bool PhysicsServerCommandProcessor::processRequestActualStateCommand(const struc
|
||||
serverCmd.m_sendActualStateArgs.m_rootLocalInertialFrame[6] =
|
||||
body->m_rootLocalInertialFrame.getRotation()[3];
|
||||
|
||||
btVector3 center_of_mass(sb->getCenterOfMass());
|
||||
btVector3 center_of_mass(sb->getCenterOfMass());
|
||||
sb->updateTransform();
|
||||
btTransform tr = sb->getWorldTransform();
|
||||
//base position in world space, cartesian
|
||||
stateDetails->m_actualStateQ[0] = center_of_mass[0];
|
||||
|
||||
Reference in New Issue
Block a user