hi
i am working on a new Box2D game. i want to create a revolutejoint to connect a wheel to a box
(creating a car) i know there is a WheelJoint but i would like to test it with a revolutejoint.
the question is, when i see some source and tutorials they use almost always Body.GetWorldCenter
in box2d (B4a) i cannot find GetWorldCenter i only have GetWorldPoint
do i need to set a vector with (0,0) and use GetWorldPoint?
(0,0 is the centre of my world)
i am working on a new Box2D game. i want to create a revolutejoint to connect a wheel to a box
(creating a car) i know there is a WheelJoint but i would like to test it with a revolutejoint.
the question is, when i see some source and tutorials they use almost always Body.GetWorldCenter
in box2d (B4a) i cannot find GetWorldCenter i only have GetWorldPoint
do i need to set a vector with (0,0) and use GetWorldPoint?
B4X:
Dim v1 As lgMathVector2
v1.Set(0,0)
RevoluteJointDef.initialize(BodyA,BodyB,BodyA.getWorldPoint(v1))
(0,0 is the centre of my world)