Limiting alignment
Blitz3D Forums/Blitz3D Programming/Limiting alignment
| ||
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 |
| ||
How about getting the collison normal? CollisionNX, CollisionNY etc. |
| ||
yes that works fine, but if the object encounters a wall, then it flips 90 degres and starts up the wall. |
| ||
well, don't use align it to the wall if the collision normal is above a certain value. |
| ||
align only to the Y vector? |
| ||
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? |