How can I implement sliding in a 3D game. I already have the collision detection stuff done.
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 19 July 2001 - 05:05 PM
Posted 19 July 2001 - 11:58 PM
Posted 20 July 2001 - 03:19 AM
Posted 23 July 2001 - 05:07 AM
if (z > 0)
if (c < 0)
c = 0
else if (z < 0)
if (c > 0)
c = 0
norm = (1/2,1/2,1/sqrt(2)) (normalized normal)
player's move vector = (200, 100, -400)
dot-prod = 100 + 50 - 400/sqrt(2) ~ -132.84
(200,100,-400) - (-132.84)(1/2,1/2,1/sqrt(2)) = (266.42, 166.42, -306.07)
dot = 266.42*.5 + 166.42 * .5 - 306.07 * 1/sqrt(2) ~ 0
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.