Game Development Community

setVelocity with vehicles

by Eric Hartman · in General Discussion · 11/26/2001 (7:15 pm) · 3 replies

Ok i'm trying to make a tribes 2 mod and what needs to happen is that one type of vehicle turns into another. Specifically, when a shrike gets shot down it turns into a nonfunctional shrike. I got this to work simply by deleteing the old one and making a new one in the same place. I can transfer the old vehicle's position and rotation just fine, but the velocity just doesnt work. setVelocity works just fine on players but nothing happens when i use it on a vehicle. I've tried using applyImpulse to get around it but its simply not accurate enough. I've also tried setMomentumVector, it didnt seem to do anything. Can anyone help?

#1
11/27/2001 (11:43 am)
I got it working with applyimpulse. It still tumbles a little but i think it'll work.
#2
12/04/2001 (12:47 pm)
Are you using VelocityAdd and then applying it?
Does you vehicle 'jump' when the velocity changes?

I am doing some player velocity stuff and it seems to be pretty jerky.
#3
12/04/2001 (6:13 pm)
Any time you force a velocity change on the server (by calling setVelocity) you will cause predition problems for the client. This is what causes the "jerkiness".

If Vehicle::setVelocity is not working, it's probably not there. If a specific function wasn't used in Tribes 2, it was oftern not tested, or simply not implemented.