Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Stop vehicle from turning to face objects that it collides with?

Amael Juran
Zensual Sculpture
Join date: 3 Mar 2007
Posts: 41
05-07-2008 13:49
Apologies in advance if this is a common problem or well known annoyance- I've trawled through the forums but couldn't find anything on it.

I have a simple vehicle that's in the shape of an egg. I've noticed that if the front of the vehicle touches off of another object, then the whole vehicle will instantly turn to face the object which is annoying to say the least... e.g. if you're travelling parallel to a wall and turn towards the wall slightly, as soon as the front contacts the wall, then the whole vehicle will turn to perpendicularly face the wall.

Are there any ways to stop this or deflect the vehicle away? I don't want to change the shape of the vehicle so all I can think of is stopping the vehicle dead if a collision is detected.

Thanks in advance!
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
05-07-2008 14:02
there are a few but that just is the way physics are roll a ball agenst a wall what dose it do?

it turns so you would need to place a flat prim under the egg shape to act as a guide to help it to not turn when it taps into a object
Amael Juran
Zensual Sculpture
Join date: 3 Mar 2007
Posts: 41
05-07-2008 14:13
From: Mrc Homewood
there are a few but that just is the way physics are roll a ball agenst a wall what dose it do?

it turns so you would need to place a flat prim under the egg shape to act as a guide to help it to not turn when it taps into a object
Thanks for the suggestion- I tried doing something similar for a different reason when I was making the vehicle but the front edge of the flat prim kept on getting caught on uneven terrain or small ground obstacles- hence the round egg shape now! :)

I've thought about the physics side of it and it doesn't makes sense to me- if you have a snooker ball travelling at speed and it hits the side of the snooker table at a very small angle, I'm pretty sure it'd either run along the edge of the table or bounce off of it- not turn into to face the edge?... I tried setting everything to glass just in case but it didn’t make any difference :(
Nexii Malthus
[Cubitar]Mothership
Join date: 24 Apr 2006
Posts: 400
05-08-2008 21:27
That is because the snooker balls don't have a propellant to keep going forward but use momentum :)
_____________________

Geometric Library, for all your 3D maths needs.
https://wiki.secondlife.com/wiki/Geometric

Creator of the Vertical Life Client