Hi everyone !
I'm working on an app using box2D in C++ but I don't understand how to get the bodies which are connected with a DistanceJoint.
I tried GetBody1() and GetBody2() as written in the manual but the compilator tells me it doesn't exist.
What's wrong with it ?
Thanks 😀
[EDIT] I looked in b2Joint.h and in fact it's GetBodyA() and B so I think you should change what's written in the manual to avoid errors such as mine 😉
I'm working on an app using box2D in C++ but I don't understand how to get the bodies which are connected with a DistanceJoint.
I tried GetBody1() and GetBody2() as written in the manual but the compilator tells me it doesn't exist.
Code:
'class b2Joint' has no member named 'GetBody1'
It says.What's wrong with it ?
Thanks 😀
[EDIT] I looked in b2Joint.h and in fact it's GetBodyA() and B so I think you should change what's written in the manual to avoid errors such as mine 😉