This project has moved and is read-only. For the latest updates, please go here.

WorldAnchor1 & 2 refer to previous timestep

Topics: Developer Forum
Mar 15, 2009 at 11:18 AM
I'm new here, so hi everyone!

The documentation states about WorldAnchor: "WorldAnchor1 – Get the world anchor for Body1. Useful for drawing the joint."

But from my experimentations, WorldAnchor indicates where the world anchor position was the previous timestep - at least for the PinJoint. Using the following code; "PinJoint.Body1.GetWorldPosition(PinJoint.Anchor1)" returns the correct position. this becomes very visible when rendering a joint for a fast moving body.

with regards,