- Home /
Probably another "bullet through paper problem". Jerks, teleports, and other problems
I have a platform that is controlled by left-right gestures on the smartphone. I need to stop the turn of the platform if it encounters an obstacle. With a quick turn the platform jumps teleports the obstacle. The gifs shows a simplified version of the scene.
Gifs (the problem itself): https://imgur.com/a/sQGFi
That's what I tried and that I did not succeed:
Add to platform and obstacle rigibody with "Continuous Dynamic" collision detection and move the platform as a physical object. At a fast turn the platform jerks and still teleports through the obstacle.
Played with the mass and colliders. Same problem.
I tried to remember the last position before teleportation and restore it. Too much jerking. And still teleports (if VERY quickly move the platform).
Manually disable motion if the angle of rotation is greater than a certain. I could not calculate a stable ban zone (the obstacle position may change).
Reduce the maximum swing speed of the platform. Jerks.
Any ideas?
Your answer
Follow this Question
Related Questions
Detect collision and prevent intersection 1 Answer
Physic based golf game - ball bouncing off the connection of colliders on flat surface 2 Answers
How to detect which side of my player has collided? 2 Answers
How to calculate magnitude when resolving collision events? 1 Answer
Unity Collision Returns child instead of parent object 2 Answers