Flash to Java port of this code (maybe getTransform)

var ldirection = wheel.GetXForm().R.col2.Copy();
ldirection.Multiply(engineSpeed);

how i can do this in java code?

Thanks
Code:
Vec2 ldirection = wheel.getXForm().R.col2.clone();
ldirection.mulLocal(engineSpeed);


If you're using a different version of JBox2d, it's possible it might be getTransform instead of getXForm.

Are you using Eclipse/Netbeans/IntelliJ? You should be able to get autocompletion, and browse through the possible methods. Usually even if there are slight differences from other versions they're close enough to find that way.

Original thread: https://box2d.org/forum/viewtopic.php?t=5842