Christian
20-11-2008 10:29:44
Hello,
I´ve tried now a few things with Newton, but I didn´t find out how to do the following best.
I have two teams of players with the same materialId and a floor with an own materialId. At the moment I can move one of the players and create Collisions between Players that way. I have a CollisionCallback Class registered for Collisions between player-materials.
Now I want that the Players don´t collide any more, but instead stop near each other even when I continue to make them move into each other (the player I move should just stop near the other player he is going to collide with, but it should still be possible to move away in an other direction)
Do Newton or Ogre have anything to detect, if an other objekt is very near and if its in front/back/side of the calling object ?
Thank you for your Help
I´ve tried now a few things with Newton, but I didn´t find out how to do the following best.
I have two teams of players with the same materialId and a floor with an own materialId. At the moment I can move one of the players and create Collisions between Players that way. I have a CollisionCallback Class registered for Collisions between player-materials.
Now I want that the Players don´t collide any more, but instead stop near each other even when I continue to make them move into each other (the player I move should just stop near the other player he is going to collide with, but it should still be possible to move away in an other direction)
Do Newton or Ogre have anything to detect, if an other objekt is very near and if its in front/back/side of the calling object ?
Thank you for your Help