• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Wheel Joint Help

J

jason

Guest
I have a car boy object that is just a rectangle physics fixture and I am trying to use a wheel joint to attach wheels,but i can not get it to work.

Trying to figure out what I am doing wrong. Any advice is appreciated.

Here is the create event for the car body.


render_flags = phy_debug_render_shapes | phy_debug_render_joints | phy_debug_render_coms | phy_debug_render_obb;

instB = instance_create(x+50, y+50, obj_wheel);
instC = instance_create(x-50, y+50, obj_wheel);


physics_joint_wheel_create(id, instB, instB.x, instB.y, 0, 0, true, 0, 0, 0, 0, false);
physics_joint_wheel_create(id, instC, instC.x, instC.y, 0, 0, true, 0, 0, 0, 0, false);

 
Top