> The angle of the slope will come from the vecPlaneNormal field of the
> UTIL_TraceLine() result.  Just shove it into UTIL_VecToAngles() to convert
the
> vector normal to an array of angles, then set the body angles of the
vehicle
> entity to match.

Right, but, imagine standing on the edge of a slope. Then the plane normal
would give a wrong result. I just noticed though that for my theory to work
you need at least 4 tracelines to correctly calculate banking.

You see, it's up to you which way to choose.

---
TheTinySteini
- www.resourcecode.de
- www.poke646.com

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to