- Home /
Question by
pion · Jul 27, 2011 at 06:51 PM ·
boxcollider
Box Collider and Cube relationship
Box Collider describes "Size = The size of the Collider in the X, Y, Z directions.".
I have created 2 cubes:
- Scale down the first cube to (0.5, 0.5, 0.5)
- Scale up the second cube to (2.0, 2.0, 2.0)
The default Box Collider Size is (1, 1, 1).
Do I need to change Box Collider Size to the following?
- Scale down the first Box Collider to (0.5, 0.5, 0.5)
- Scale up the second Box Collider to (2.0, 2.0, 2.0)
Or leave their Size to (1, 1, 1) ?
Thanks in advance for your help.
Comment
Best Answer
Answer by Peter G · Jul 27, 2011 at 06:53 PM
Scaling the GameObject will also scale the collider so you can leave it at (1 , 1 ,1). If you scaled the mesh, then you do need to change the size of the collider appropriately.