Crouching shape changer

Is it possible to make it where the size and collider size can be changed in game using code?
I need this to make my bean players crouch. :slight_smile:

Hi @Gavin_Durbin,

Yes, it’s possible to change the size of a collider in code, example changing the height of a capsule or cylinder collider:

entity.collision.height = newColliderHeight;
2 Likes

Oops. Something like that would leave me with an annoying or unnoticed bug. Why are such things not being done behind the scenes?

1 Like

Actually it’s indeed being handled, I take it back and editing by post above. I may have observed that behavior in an older engine version or while doing something custom of my own:

2 Likes

Good to hear. Thank you for checking it out!

1 Like