i am currently working on a racing game for blender and i was trying to figure out if there was some way to have inertia for objects in the game engine. ie. when you stop pressing the acceleration button on the car it stops dead still. this can be somewhat annoying and i have not found any tutorials or descriptions or any sort of online documentation on this...
if anyone knows how to achieve this please notify me.
inertia in gameblender
Moderators: jesterKing, stiv
-
- Posts: 0
- Joined: Sat Feb 03, 2007 5:48 am
inertia in gameblender
The first dimension:
a place where we can all have fun as infinitely small points on an infinitely thin line...
a place where we can all have fun as infinitely small points on an infinitely thin line...
Hi there,
You will need to use the great physics engine ( Bullet 2 ) with Blender if you want to have momentum etc.
Have a read over this tutorial, and it'll help explain the difference between direct control over objects, and using the physics engine ( Section 4 and 5 - moving an object using no physics, and using physics ).
http://mediawiki.blender.org/index.php/ ... ame_Engine
Regards...
Mal
You will need to use the great physics engine ( Bullet 2 ) with Blender if you want to have momentum etc.
Have a read over this tutorial, and it'll help explain the difference between direct control over objects, and using the physics engine ( Section 4 and 5 - moving an object using no physics, and using physics ).
http://mediawiki.blender.org/index.php/ ... ame_Engine
Regards...
Mal
-
- Posts: 0
- Joined: Sat Feb 03, 2007 5:48 am
-
- Posts: 0
- Joined: Sat Feb 03, 2007 5:48 am
Well, I have momentum for the car, added in through the force input in the motion action. I encountered another problem of the car still coasting the direction it had been moving even after I turn the car.
it also will continue to coast in that direction after I press reverse and then release the reverse key.
any way to fix this using logic bricks?
it also will continue to coast in that direction after I press reverse and then release the reverse key.
any way to fix this using logic bricks?
The first dimension:
a place where we can all have fun as infinitely small points on an infinitely thin line...
a place where we can all have fun as infinitely small points on an infinitely thin line...
there are variations of using linv that will give you close to the effect you desire
[you can send a false pulse to stop motion, or reverse the velocity to bring the vehicle to a stop. It takes a lot of playing, and use of python]
however, then you'd have to do the accelation yourself [if you want acceleration]
DO NOT use DLOC
- the speed depends on framerate [or at least, it used to. Might've been fixed 2.37 or so]
- collisions don't always prevent one object from passing through another
[you can send a false pulse to stop motion, or reverse the velocity to bring the vehicle to a stop. It takes a lot of playing, and use of python]
however, then you'd have to do the accelation yourself [if you want acceleration]
DO NOT use DLOC
- the speed depends on framerate [or at least, it used to. Might've been fixed 2.37 or so]
- collisions don't always prevent one object from passing through another
-
- Posts: 0
- Joined: Sat Feb 03, 2007 5:48 am
fixed it again!!!
all right, I fixed it, it actually had to do with the DLoc, once I put a value in there the turning and coasting worked a lot better. The LinV just got rid of all acceleration. I didn't have to use python so I'm happy, because i don't know it!
The first dimension:
a place where we can all have fun as infinitely small points on an infinitely thin line...
a place where we can all have fun as infinitely small points on an infinitely thin line...