Uh oh, more problems

danharibo

22-07-2006 16:25:20

Now the tractor is just jumping like a maniac, :
[/url]
the wheels bounce up:
[url=http://img142.imageshack.us/my.php?image=screenshot3jz3.png][img=http://img142.imageshack.us/img142/3320/screenshot3jz3.th.png][/url]
And then it just falls thru the floor
[url=http://img291.imageshack.us/my.php?image=screenshot5rv4.png][img=http://img291.imageshack.us/img291/3813/screenshot5rv4.th.png][/url]

danharibo

24-07-2006 12:25:10

Well, half my problems are gone, its just The Friction isn't hicgh enough and the wheels just spin like crazy. and i cant seem to figure out how to increase the friction

danharibo

24-07-2006 17:37:34

anybody?

Ogre::Real mass = 40.0;
Ogre::Real width = 3;
Ogre::Real radius = 4.5;
Ogre::Real susShock = 30.0;
Ogre::Real susSpring = 200.0;
Ogre::Real susLength = 0.3;

SUF_Rusty

25-07-2006 13:57:30

hello im working with dan (im a n00b)

Surely somone must be able to help? there seems to be a problems with not enough Gravity / friction and when driving the vehicles , and somtimes its like driving on ice....is there a way of editing a materials friction propertys? or giving the world more gravity? at the start of the game the vehicles fall realy slowly....like theres not enough gravity..

Thanks 8)
Rusty

praetor

25-07-2006 15:14:20

Take a look at the OgreNewt API reference. There's a MaterialPair class.

OvermindDL1

25-07-2006 21:05:23

Yes, create a material callback and inside the callback just up the amount of friction.

SUF_Rusty

26-07-2006 08:10:49

thanks, i had a fealing it was that.....
*Flashbacks from setting up IRR::Newt material callbacks* :shock:

....theres your awnser then dan, now get to work! :lol: :roll:

Rusty

walaber

26-07-2006 08:26:13

unless you want to change the friction on the fly, you don't actually need to go as far as callbacks.

if you create a MaterialPair, you can set the default friction at the beginning for that pair. in Newton, friction values can be between 0.0 and 2.0. so for maximum friction, set it above 1.0.

danharibo

26-07-2006 21:04:29

I probably missed it, but where is the wheel's collisoin and body genaration code? i have looked for it, but i can't find it, ive probably overlooked it, so anyhelp would be nicd :)