#### Archived

This topic is now archived and is closed to further replies.

# handling collisions

This topic is 6709 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

if you're going toward a wall at an angle. you make the velocity for the direction perpendicular to the wall equale zero and leave the others alone.
v- wall
|
|/ <- -x, -y
| | <- x=0, -y
| |

##### Share on other sites
That seems to be an interesting approach although it seems quite limited in its applicability. If a wall is not aligned perfectly with an axis (imagine a wall rotated 45 degrees around y where the normal components are equal across x and z), it seems to fall apart a bit. Besides, I need this to work for objects other than just walls. I would like it to be a more general purpose algorithm. There seems to be some merit to your idea for many cases though and I will look into it. Any other ideas or equations out there?

##### Share on other sites
I am having some serious issues with handling player collisions in my 3d world (FPS type). I am able to detect the actual collisions with the objects and their respective polygons, yet am unable to accomplish the 'sliding' mechanism that I would like. How is it done? How do you slide the player along in the appropriate direction.
I have heard that you should project the players direction vector along the poly's normal onto the poly to generate two new points, and then use the new vector value and add(?) it to the player position? How do you do this stuff? Very confused. Please help if you can....

##### Share on other sites
Did you get this working yet?

I''m after the same effect with no sucess!

##### Share on other sites
Get a normal of the plane, then after you hit the wall at let''s say 45 degrees, move the camera/player''s bounding box or position back along the plane normal. After that the player will move foreward again thus check for new collision and after that move the player back along the plane normal again and repeat.

my homepage
E-Mail: BlueOrbSoftware@mailcity.com

##### Share on other sites

work, dammit!
how do you do this stupid thing? html
cool! it works! (sorry, first graphical post)

anyway, if you check out my posted 3d collision response post, i think one of the responders meant something like this. check out the thread, and see if you understand it.

a2k

Edited by - a2k on June 10, 2000 2:23:31 AM

1. 1
Rutin
44
2. 2
3. 3
4. 4
5. 5

• 13
• 10
• 12
• 10
• 13
• ### Forum Statistics

• Total Topics
632997
• Total Posts
3009791
• ### Who's Online (See full list)

There are no registered users currently online

×