trying to achieve this using bullet solver, blue rectangular slab is baseball at the movement, using mousein CHOP to control it, but when move it with speed just like how we handle a baseball swing, ball goes through the slab, how to fix it, is bullet solver slow in simulating?
error video
ball bouncing.5.toe (6.9 KB)
I recommend to start reading here in the docs:
Actor COMP - Why are my bodies not colliding?
So the reason is probably, by default Bullet checks for collisions only at the start and end of each frame, and the collision of your fast moving actor happens in between.
As mentioned in the docs, a good first step for fast-moving actors is to enable Continuous Collision Detection on the Actor COMPs.
Its enabled, on the rectangular slab ,the Continuous Collision Detection is on, I have im moving my slab way to fast, but i need that fast movement, cuz its baseball interactivity game
Is it enabled on the ball as well? And see link I posted for other tips about handling thin objects.
one thing i can do is through bullet solver chop, distance between ball and slab, and a FORCE comp to the ball, idk i think baseball will still overlap
1 Like
Next step is handling thin objects. So 6 boxes instead of one - like example mentioned in docs.
thanks ,ig I have figured out giving statistically less error than before, by increasing the number of collision point on each actor
by keeping every actor in bouding sphere, im getting results
Great! Yes bounding sphere has the fastest collision detection.
I ran into a similar issue while trying to make an air hockey simulator that tracked people as they walked along the floor. I found that if I just set the mallets position to reference the people’s positions, then they would overlap without properly colliding.
I ended up having to use a force comp for each mallet that constantly calculates the difference between the mallet position and the player position and adjusts the force to try to bring it closer. There are a couple constants (stiffness and overshootresist) thrown in to tweak and get the feel you want.
This solved my problem so I hope it can help you! I’ll attached a modified version of the simulator using a noise TOP to create 4 random “players”
AirHockey.toe (15.1 KB)