Player sticking at invisible "chute" poly edges
by DNADMG · in Technical Issues · 11/05/2005 (1:19 pm) · 2 replies
I'm making a video game for children where I need to allow limited exploration. I do this by limiting left/right rotation to 30 degrees, and keeping the player in an invisible "chute" or hallway. The chute is a collision mesh I made in Maya, and it gently slopes up and down and varies in width to match the visible scenery.
It generally works well except for one problem: when the player is turned near the maximum in a direction, so that they're running into & along the wall, and they hit a polygon boundary in the invisible chute, they slow way down, or even stop. How do I stop the player from "sticking" at these polygon junctions? Ideally the player would slow down a roughly consistent, small percentange when running into & along a wall.
I've played around with the player.cs settings, and examined the player.cc code, but can't seem to get this working.
FYI I'm modifying starter.fps for this game.
thanks
It generally works well except for one problem: when the player is turned near the maximum in a direction, so that they're running into & along the wall, and they hit a polygon boundary in the invisible chute, they slow way down, or even stop. How do I stop the player from "sticking" at these polygon junctions? Ideally the player would slow down a roughly consistent, small percentange when running into & along a wall.
I've played around with the player.cs settings, and examined the player.cc code, but can't seem to get this working.
FYI I'm modifying starter.fps for this game.
thanks
About the author
#2
11/05/2005 (2:09 pm)
Another thought would be to find the vector of the wall and angle the player along that when at the wall while pushing extreme left or right. Even if the player is angled into the wall at the start of the cycle, you would know they are the edge and the angle would be adjusted so the forward angle never collides with the wall at this point - which should over come your joins - it would never push into the wall.
Torque Owner Brian Richardson