- Home /
Rigidbodies fly through instead of colide because of too much force
Accually i told everything in title. If i give force =400f and shoot cube (Instantiate and addforce) the cube just fly through (like 95% times) other cubes. If i reduce force to 50f its colide 100% times
Rigidbody CopyCube = Instantiate(cube, SpawnPoint.transform.position, Quaternion.identity);
CopyCube.AddForce(fpscam.transform.forward * force, ForceMode.Impulse);
its included in FixedUpdate()
Comment
Best Answer
Answer by Casiell · Nov 08, 2018 at 02:36 PM
Change collision detection to Dynamic on your rigidbody
Answer by baltrek · Nov 08, 2018 at 04:02 PM
Rigidbody CopyCube = Instantiate(cube, SpawnPoint.transform.position, Quaternion.identity);
CopyCube.collisionDetectionMode = CollisionDetectionMode.ContinuousDynamic;
CopyCube.AddForce(fpscam.transform.forward * force, ForceMode.Impulse);
Works great thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220612181745im_/https://answers.unity.com/themes/thub/images/avi.jpg)