arkos
19-11-2006 18:19:06
Hey guys,
When I shoot a bullet in my game it is supposed to travel forever at the same velocity. The problem is that it travels for a while and then slows down to a stop. Here is my code:
Basically I define a custom force callback with nothing in it. This makes it so gravity does not affect the bullet (which is what I want in my game) but unfortunately the bullet still slows down for some reason. I only want the bullet to be affected by collisions with other objects. Any suggestions?
When I shoot a bullet in my game it is supposed to travel forever at the same velocity. The problem is that it travels for a while and then slows down to a stop. Here is my code:
body->setCustomForceAndTorqueCallback(&bulletCallback);
void bulletCallback(OgreNewt::Body *body)
{
}
Basically I define a custom force callback with nothing in it. This makes it so gravity does not affect the bullet (which is what I want in my game) but unfortunately the bullet still slows down for some reason. I only want the bullet to be affected by collisions with other objects. Any suggestions?