Tutorial steps
Let’s say that I want to add 2 Capsule Colliders to my Palm Tree GameObject like that:
But if I add 2 Capsule Colliders to my Tree GameObject, the best I can do is this:
When you add a Collider component on your GameObject, you will see that there’s NO option to Rotate the Collider any degree you want. You can ONLY Rotate it 90 degrees by y, z, x-axis, change its Position and Scale it.
So to Rotate it how you want, you need to add the Empty GameObject as a Child to your GameObject (for example a Child GameObject to my Palm Tree). To do that RIGHT CLICK on your GameObject (Palm Tree) and select Create Empty.
Now you will see that your GameObject (Palm Tree) has a Child Empty GameObject called GameObject attached to it.
Add a Capsule Collider to the Child GameObject.
Change Capsule Collider Size by changing Radius and Height. To Move or Rotate it, use Transform of the GameObject: This way, you can rotate it how you want.
I added another Empty GameObject to my Palm Tree. Here is a finished result with 2 Colliders:
Thank you for stopping by! :)
If you want to support me, you can do that by subscribing to my YouTube channel or by buying my Game Assets. This helps me to create more content for you guys! Appreciate any support :)