collision hull (level) problem

Posted By: MPQ

collision hull (level) problem - 08/08/09 21:48

hi,

After creating a entity via script I wanted to set the collison hull for level collison for my entity.

her my code:
Code:
wait(1); 
c_setminmax(my);
vec_set (my.min_x,vector(-50,-50,-50));
vec_set (my.max_x,vector(50,50,50));



When I start the level and press F11 a new collison hull is set but the hull is sinking in level geometrie!? Whats wrong?
Posted By: MrGuest

Re: collision hull (level) problem - 08/09/09 00:30

using c_setminmax automatically sets the minimum size of min_x min_y min_z and max_x max_y and max_z,

using vec_set(my.min_x etc... will only change that
Posted By: MPQ

Re: collision hull (level) problem - 08/09/09 07:49

ok thanks I removed c_setminmax, but it doesnt matter because, c_setminmax is set before minx, miny

hmm
Posted By: Anonymous

Re: collision hull (level) problem - 08/09/09 08:23

i dont know if this helps, but i had a problem like urs. i just set my.fat = off; or my.narrow = off;
even u not use fat or narrow, as soon as u use c_setminmax u need to disable fat or narrow if u dont need them.
Posted By: MPQ

Re: collision hull (level) problem - 08/09/09 11:00

ok thanks i will try it out

Edit: It is not working :(, what now?
Posted By: Tobias

Re: collision hull (level) problem - 08/09/09 11:22

You must not set them off, but on. If in doubt look in the manual.
Posted By: MPQ

Re: collision hull (level) problem - 08/09/09 12:08

sorry, but I read the manaul I tired the way it is described (I think so)

why is this topic moved to c-script? I am using Lite-C
Posted By: MPQ

Re: collision hull (level) problem - 08/09/09 12:15

-
Posted By: Tobias

Re: collision hull (level) problem - 08/09/09 14:33

c_setminmax sets both flags so your first code was right. Also, when you see the new hull size with F11 then it is set correctly. The problem is then not the hull.
Posted By: MPQ

Re: collision hull (level) problem - 08/09/09 14:47

but why is the new hull sinking in the level geometry?
© 2024 lite-C Forums