Hi there,
That does sound weird at first, but as I try to picture what you’re describing, I’m starting to think it sounds like normal behavior. Let me try to describe what I’m picturing, and let me know if this is not what’s going on.
What I’m imagining is something like a billiard table viewed from above. There is no gravity (since we’re viewing it from above, the gravity is “into” the screen, not down.) Your “billiard balls” are the player and various other objects, which move around and sometimes collide with each other. The so-called “test object” is the one with the snap-back behavior via the touch joint.
So, imagine the player collides with the test object. Two things could happen. First, depending on their relative masses and the bounce properties of the player and the test object, the player could just bounce off. Second, if the player is moving fast enough and has enough mass, and depending on the maxForce and frequency of the touch joint, the player might temporarily dislodge the test object from its normal coordinates. As it does so, the touch joint will “stretch” and cause the test object to snap back into place. When it does, the player will be pushed away from the test object. In either case, the player will be moving away from the test object, and at a speed equal to its original speed or less.
If the player now collides with some other object, depending on their relative masses and bounce properties, it’s quite possible that they will start moving in the same direction too. Imagine that the player is very massive and the object it collides with is very light. Then when the player hits the object, it will just push the object along in the same direction. If the masses are more similar, then they will bounce off each other like billiard balls and head in different directions.
Does this help explain your situation?
- Andrew [import]uid: 109711 topic_id: 28630 reply_id: 115501[/import]