Ball going through and sticking to flippers in a pinball game
Hello, I'm making a pinball style game, but I have problem with the ball going partially through the moving flippers and "sticking" to them because of this. Reducing the detection time didn't fully solve the problem.
I haven't used raycasts for the sake of simplicity, I have a ball which is always turning on its axis, and to my knowledge it would require a lot of raycasts in a lot of directions just to detect collisions. But, if someone can come up with a simple solution to my problem, I'd be more than grateful.
Thanks in advance for any answers!
Answer by pavlito · Jan 27, 2016 at 01:31 PM
This is happening because your ball is moving very fast and the physics update rate cannot keep up. Try reducing all your movement speeds by half but increasing Time.timeScale (in project settings) from 1 to 2.
This will speed up the rate at which you see stuff on the screen, but will have normal speeds to calculate positions/collisions with.
What you get is: the same speed on screen but more precise calculations.
Your answer
Follow this Question
Related Questions
Three out of four of these raycasts aren't working 0 Answers
Gun RayCast Origin lags with fast moving object. Help? 0 Answers
2D collision trouble, character falling through map 1 Answer
Is it possible to add Angle to Raycast2D? 1 Answer
How To create 2D collision detection on object which changes dimensions 1 Answer