Manually change collision hull size?

Posted By: Ruben

Manually change collision hull size? - 05/12/13 00:29

Does anyone know a function I can use to manually change the size of the collision hull that surrounds my player, or any other character in the game?
Posted By: Dveyee

Re: Manually change collision hull size? - 05/12/13 01:01

See c_setminmax and min_x, max_x. Of course, you want to keep the collision hull as small as possible!
Posted By: Nems

Re: Manually change collision hull size? - 05/12/13 01:35

my.eflags |= FAT | NARROW; // set both flags to prevent automatic recalculation on scale changes
vec_set(my.min_x,vector(-10,-10,-25)); // set bounding box to individual values
vec_set(my.max_x,vector(10,10,25)) // depending on the model

Check with F11 to see BB changes.....
Posted By: Ruben

Re: Manually change collision hull size? - 05/12/13 23:11

Thank you both. And thank you Nems. I tried your code, and it works great. This is a big stumbling block out of the way. Thanks again. :-)
© 2023 lite-C Forums