themadme
13-03-2008 10:08:37
Hi. Im creating a racing game and i have a few problems.
Those problems are:
.Knowing which point exactly if the car collides with another object
.Knowing if it has passed the finish line correctly ( so that the player can not reverse and go foward over the line and win the game )
Would i have to create a Call class for contact report, to know if when and where the objects colliede? is there another way?
For the finish line i was thinking some sort of plane or box, where if the player goes through one side, i would increment a variable (e.g. Lap++ ) but if it went through the other side, i would not increment, because the player is going backwards perhaps.
Would i need to use the trigger report or is there another way, like creating a plane or box that can not effect the racer or the track it self. Therefore i would look to see if where the plane normal is, which would tell me which direction the car should be going through
If i have to create a contact class or trigger class, could some one perhaps show link to another topic, where it shows how to make one with NxOgre.
Oh all the objects are actors
Help would be very much be appreciated
Those problems are:
.Knowing which point exactly if the car collides with another object
.Knowing if it has passed the finish line correctly ( so that the player can not reverse and go foward over the line and win the game )
Would i have to create a Call class for contact report, to know if when and where the objects colliede? is there another way?
For the finish line i was thinking some sort of plane or box, where if the player goes through one side, i would increment a variable (e.g. Lap++ ) but if it went through the other side, i would not increment, because the player is going backwards perhaps.
Would i need to use the trigger report or is there another way, like creating a plane or box that can not effect the racer or the track it self. Therefore i would look to see if where the plane normal is, which would tell me which direction the car should be going through
If i have to create a contact class or trigger class, could some one perhaps show link to another topic, where it shows how to make one with NxOgre.
Oh all the objects are actors
Help would be very much be appreciated