Limiting alignment

Blitz3D Forums/Blitz3D Programming/Limiting alignment

RifRaf(Posted 2003) [#1]
If you have an object moving about, and always aligning to the vector of its collision, how can you place limits on it so that it doesnt align to very steep hills and walls.. so it doesnt climb walls and roll across ceilings. ? I can use a linepick straight down to eliminate the chance of aligning to a wall, but still would like to know how to limit collision values. Thanks


Ross C(Posted 2003) [#2]
How about getting the collison normal? CollisionNX, CollisionNY etc.


RifRaf(Posted 2003) [#3]
yes that works fine, but if the object encounters a wall, then it flips 90 degres and starts up the wall.


Ross C(Posted 2003) [#4]
well, don't use align it to the wall if the collision normal is above a certain value.


(tu) sinu(Posted 2003) [#5]
align only to the Y vector?


jfk EO-11110(Posted 2003) [#6]
that's true, I've also have seen my lovely from-above-pseudo-shaded bulletholes upsidedown on some walls (north only or something), while they were oriented correctly on other walls, using all th same aligntovector routine. could you explain this closer, Ross?