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);
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);