Hi all, I am learning with a project to simulate a car with steering.
I have the wheels as rectshapes, they work fine, I can rotate them.
I built the frame with 7 ‘nodes’ indicating the corners of the car, each node is an ovalshape and I have grouped them in a group2D along with the wheels.
Now the problem…
I want to rotate the whole ‘vehicle’ (ie the group2D called ‘car’) and also to move it about on the canvas using sliders to change the origin of ‘drawing the car group2D’.
Problem is that if I rotate the items inside the group2D and then move the origin in a single axis, it is fine on the X axis but on the Y axis it moves at an angle… (in both axes even though the X axis value is static).
I can rotate the ‘wheels’ (rectshapes) and the ‘car’ can be shifted X or Y no problem, but if I rotate the ‘nodes’ (frame of car), the XY slide rotates too.