Game Development Community

Weld Joints Spazzing

by practicing01 · in Torque 2D Beginner · 04/12/2014 (8:05 am) · 1 replies

I've welded some sprites together and onCollision they spazz uncontrollably and cause an app hang. Has anyone encountered this problem and have a solution? Perhaps I'm creating the joints wrong, does anyone have a non-spazz working solution? Thanks.

How I'm creating them:
Scene_Phyxel_Tender.createWeldJoint(%Sprite_Phyxel,%Sprite_Connected_Phyxel,
%Sprite_Phyxel.getLocalVector(%Sprite_Connected_Phyxel.Position),
%Sprite_Connected_Phyxel.getLocalVector(%Sprite_Phyxel.Position),
0,
1,
false);

#1
04/12/2014 (7:18 pm)
Usually this happens when another object comes between the welded objects or the welded objects are stuck inside another object's collision.

Aside from that, a physics test scene is always a good way to try out joints before incorporating them in obstacle-laden environments.