Set mass data consistent velocity (#45)
- Rename b3Body_GetWorldCenterOfMass to b3Body_GetWorldCenter. - Rename b3Body_GetLocalCenterOfMass to b3Body_GetLocalCenter. - Fixed b3Body_SetMassData to correct velocity when local center moves.
This commit is contained in:
parent
1bec63c9ee
commit
0f6fdad541
14 changed files with 94 additions and 30 deletions
|
|
@ -1249,7 +1249,7 @@ struct RigidbodyCharacter
|
|||
// 3. TryStep — 4-phase step-up
|
||||
m_didStep = TryStep( m_stepUpHeight );
|
||||
|
||||
m_massCenterWorld = b3Body_GetWorldCenterOfMass( m_bodyId );
|
||||
m_massCenterWorld = b3Body_GetWorldCenter( m_bodyId );
|
||||
}
|
||||
|
||||
// --- PostStep: RestoreStep + Reground + CategorizeGround ---
|
||||
|
|
|
|||
Loading…
Reference in a new issue