- Home /
Problems with Configurable joint in 2d Configuration
Hi
I am creating a 2d game an object can be hung with configurable joints. These objects are able to swing meaning that the can collide with other objects such as the roof. As it is a 2d game, the ZMotion is locked as well as the Angular XMotion and Angular YMotion.
The problem is that swinging objects sometime 'teleport' when they collide. The new position seems to be random, but i think that if it collides on the X axis (left or right side) it moves up on the Y axis. If it collides on the Y axis (top or bottom) it moves left. the amount that it moves varies.
A connected body is never set and the connected anchor can change during the game. The Linear Limit - limit (Distance) can also change in game. Could these be any of the sources of the problem?