Here's a way to check for collision (sliding)
1. x# = object position x(4)
y# = object position y(4)
z# = object position z(4)
2. Now move the object on the X axis
position object 4, x#+sin(object angle y(4)),y#,z#
3. Now check for collision, if its colliding then put the
object back at x#,y#,z#.
4. Now reassign the values to the variables
x# = object position x(4)
y# = object position y(4)
z# = object position z(4)
5. Now move the object on the Z axis
position object 4,x#,y#,z#+cos(object angle y(4))
6. Now check for collision, if its colliding, then put the
object back at x#,y#,z#
Done, you can also do this for the Y axis (+ height check, so he
can still walk on stairs and slopes)
Quote: "
UPDATED
Amd 2800+
1024mb pc3200
A7N8X - Deluxe
Ati Radeon 9800PRO 256mb"