Advertisement

(After) Collision Detection

Started by November 23, 2000 10:53 PM
0 comments, last by SlimShady38 24 years, 1 month ago
This is probably a dumb question...but i''ve asked them before. I have my code set up to tell me when my camera (player) collides with my wall. But now what.......I know i don''t want it to go through the wall...but i''m having a problem figuring out how to make the camera stop or (preferibly) slide on the wall like in most other games. if you need me to i''ll post my source...it''s small....but i''d like some help.....thanks in advance 38
quote: Original post by SlimShady38
I have my code set up to tell me when my camera (player) collides with my wall. But now what.......I know i don''t want it to go through the wall...but i''m having a problem figuring out how to make the camera stop or (preferibly) slide on the wall like in most other games.


You could just translate the camera back through the wall along the wall''s normal. So the steeper the angle of collision, the slower it slides along the wall.

ro

This topic is closed to new replies.

Advertisement