C
CruelBus
Guest
I did a forum search and did not find anyone else having this problem.
Gamemaker 1.4.9999
Truck and trailer connection.
I have a truck object that has a fixture for its body, and creates a front and rear object that each have their own fixtures. The truck creates a distance joint between the front and rear objects.
Then the truck creates a trailer object.
The trailer object performs the same procedure as the truck : creates 2 objects with fixtures and a joint between them.
Finally, the truck creates a distance joint between its rear object and the trailer's front object.
I can delete the joint between the truck's front and rear, and the trailer's front and rear, but for some reason the system refuses to remove the distance joint between the truck and the trailer.
I have tried rope and revolute joints with the same failure to delete.
The joint between the front and rear within each object is required.
SOLVED: (USER ERROR) physics joints were being created every step, so deleting one of them made no difference.
Any ideas?
Simple diagram:
--- joint I can delete
=== joint I can't
trailer . . . truck
O --- O === O --- O
Gamemaker 1.4.9999
Truck and trailer connection.
I have a truck object that has a fixture for its body, and creates a front and rear object that each have their own fixtures. The truck creates a distance joint between the front and rear objects.
Then the truck creates a trailer object.
The trailer object performs the same procedure as the truck : creates 2 objects with fixtures and a joint between them.
Finally, the truck creates a distance joint between its rear object and the trailer's front object.
I can delete the joint between the truck's front and rear, and the trailer's front and rear, but for some reason the system refuses to remove the distance joint between the truck and the trailer.
I have tried rope and revolute joints with the same failure to delete.
The joint between the front and rear within each object is required.
SOLVED: (USER ERROR) physics joints were being created every step, so deleting one of them made no difference.
Any ideas?
Simple diagram:
--- joint I can delete
=== joint I can't
trailer . . . truck
O --- O === O --- O
Last edited by a moderator: