Is there a way to get a compound collider with ~1000 box colliders to not shred a CPU? Thanks in advance. My CPU is a Ryzen 3600.
float currentRotation = transform.eulerAngles.y;
transform.eulerAngles = new Vector3(0, currentRotation, 0);
I found out what the problem was. See these two lines of code? Don’t even look at them! Pure poison!
If you need to regulate the position of a drifting rigidbody and its compound collider make sure to use a tolerance. Being continually specific about the position in Update will MURDER your CPU.
if(transform.position.y < -1 || transform.position.y > 1)
transform.position = new Vector3(transform.position.x, 0, transform.position.z);