- Home /
Colliders not Colliding when FPS are to low
Hi!!, I am developing a Tennis VR.. and my graphic card died.. so I have to work with an old one that with difficulty supports it.
So I have a very weird problem.. When I move quick the racket it does not trigguer OnCollisionEnter.. I have to do the movement slowly
That is what is happening to me..
https://www.youtube.com/watch?v=fGghTO63Ors
I try all the combinations Collision detection - Continuous or Continuos Dynamic.. etcetc.. I also try the alrgorithm "Dont go through things"
So..
It is posible that is not working because of the low FPS? Right know I cannot test in other computer.. I do not know what I am doing wrong..
Thanks in advance!
Use the Continuos Dynamic. It's the best way in your case.
And how are you moving the racket rigidbody? You should use the rigidbody.$$anonymous$$ovePosition / $$anonymous$$oveRotation functions (these functions are using the rigidbody interpolation setting).
Is't possible to increase the size of the racket collider? (make it a bit thicker)
Also try to decrease a fixed time step. It will increase the count of the FixedUpdate calls per second (Edit > Project Settings > Time > Fixed Timestep).
Answer by detolox · Jun 20, 2018 at 09:03 PM
I am using Continuos Dynamic. Yes the rigidbody is bigger than the racket x,y,z and I also decrease the fixed time step.
The racket rigidbody is attached to the GameObject. So I have to create an script to do it? To move the the rigidbody at Update() function or FixedUpdate()?
The racket rigidbody should be moved through a script in the FixedUpdate function using $$anonymous$$ovePosition / $$anonymous$$oveRotation. So that the "Continuos Dynamic" option would work.
Looks like you have attached the racket rigidbody to some other GameObject which is moving? Am I right? I don't know how the parent GameObject is moving, but the best way is remove the racket rigidbody from a child (so that we don't have any linkages between GameObject and the Racket rigidbody) and create a script on GameObject which will move the racket rigidbody using $$anonymous$$ovePosition / $$anonymous$$oveRotation in the FixedUpdate func.
Your answer
Follow this Question
Related Questions
BoxCollider get stuck when dragging over the border of two BoxColliders 1 Answer
More realistic physics? 0 Answers
Wall collisions for a top-down game 1 Answer
Colliders going through Colliders? 1 Answer
[2Dplatformer][Problem] When the player closes to the enemy, the enemy pass through the colliders 0 Answers