Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Vehicle Physics - motorcycle bounces all over the place

Garth Bellman
Registered User
Join date: 6 Oct 2006
Posts: 28
06-04-2007 03:25
Hi scripters,

I've made a bike and placed a script a derivation of the Ben / Cory bike script in it to make it rideable. At slow speeds its okay, but at higher speeds it bounces all over the place, over what looks like smooth terrain, or over flat roads and tracks.

Obviously I have turned on the NO_DEFLECTION_UP, LIMIT_ROLL_ONLY and NO_MOTOR_UP flags but still when I hit an invisible bump, it bounces into the air in a most unrealistic manner. I don't see this with machines other people have made. Any ideas what am I doing wrong?

Also at higher speeds turning is a nightmare, it just tends to side slip more and more. Increasing the angular motor x and z values has no noticeable effect either.

"Driving" me nuts.
grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
06-04-2007 22:11
It sounds like your bike has too much mass.

Try making more items hollow or make them flater.

Edit: I've also seen some with invisable small wheels in the front or back.
Garth Bellman
Registered User
Join date: 6 Oct 2006
Posts: 28
06-05-2007 09:18
Not thought of that. Trouble is, the vehicle in question has a very small mass itself, a seat plus a couple of wheels, the main body of it is worn as an attachment. Could it be the opposite, in as much as the "physical" vehicle mass is too small to keep it on the ground?
grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
06-06-2007 14:04
From: Garth Bellman
Could it be the opposite, in as much as the "physical" vehicle mass is too small to keep it on the ground?


Your center of gravity and the object's center could be mis-matched.

Personaly... I've given up on using the vechcal based system and insted use a timer and llApplyImpulse.

In your case, you could try and add an invisable box or two and see how it performs.