Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Some vehicle help please - ground vehicle rotating on the spot

Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
03-16-2006 14:27
Hello there

I'm trying to build a small tank as a ground vehicle, and I'm not terribly experienced with them. I've built cars, but tanks should be able to turn left and right without having to be moving forward or back, and I simply can't work out how to do this with the parameters.

Can anybody give me a hint?
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
03-16-2006 22:47
From: Ordinal Malaprop
Hello there

I'm trying to build a small tank as a ground vehicle, and I'm not terribly experienced with them. I've built cars, but tanks should be able to turn left and right without having to be moving forward or back, and I simply can't work out how to do this with the parameters.

Can anybody give me a hint?


angular motors and angular friction.
_____________________
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
03-17-2006 00:25
Well, it already has an angular motor in it. Applying the same angular velocity at zero speed, regardless of friction settings, seems to result in no movement, whereas applying it when moving results in a turn, apparently proportional to the speed. This doesn't happen with the air vehicles that I've built, which leads me to conclude that either (or both)

(a) there's some odd quirk in the vehicle physics engine which means that "ground friction" is being applied in inverse proportion to speed, but only for angular motion;

(b) there's a default parameter somewhere that I'm not seeing which is causing this, or causing something else which is causing it.
Patch Lamington
Blumfield SLuburban
Join date: 2 Nov 2005
Posts: 188
03-17-2006 02:40
From: Ordinal Malaprop

(a) there's some odd quirk in the vehicle physics engine which means that "ground friction" is being applied in inverse proportion to speed, but only for angular motion;


That sounds about right - my own experience is that a vehicle has to be moving forward or back for angular motor to have any effect. Makes sense for *most* ground vehicles, so I assume it is the default behaviour. Don't think there is any way to override it either.

Cheat?
Instead of using angular motor, use non-phys movement for turns? (or at least for turns while speed ~ 0)
A pain and a bit ugly, but if it works...
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
03-18-2006 03:50
I wonder,
Could you put in two physical engines. one on each side of the tank?
For example. The forward working on the right but going in reverse for the left. (Put one on each tank tread or tire)

I never tried multi vechiles scripts in one linked object.
But I've seen others do it. :)
_____________________