Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Getting post-update position: User Manual is out of date. #34
In section "9.3 Updating a Rigid Body", the code sample provided calls a non-existent "getInterpolatedTransform" method on RigidBody.
Is it now RigidBody::getTransform()? This unexpectedly holds all zeros for me. But that could be some other mistake I'm making.
Thanks a lot for reporting this.
I have fixed this in the documentation in branch "develop" (commit dfb4b81). This will be integrated in the next release of the library.
Now you need to use the getTransform() method on a body to get the current transform. To avoid unpleasant visual effect, you also need to get the interpolated transform between the previous and the current frame as in the following code :
You can see an example in the testbed application of the library.