Game Development Community

Inherited Inertia/Gravity

by Kirchgessner · in Torque Game Engine Advanced · 07/16/2008 (2:04 pm) · 3 replies

I was looking for some information on inherited inertia from collision objects. Basically if I stand on a car that my friend is driving then I will be able to stand on the vehicle and shoot enemies or what not.

Is there a setting or a certain script or code hack that I have to add into the engine?

thanks for the help ahead of time.

#1
07/16/2008 (7:20 pm)
Actually as long as you set up your mounting script for passengers to to the following it should work just fine:

1. Leave the player character as the client's control object, should be a given anyway.

2. Design your mount script so it only has the weapon image unmounted for players mounting mount node 0 (the driver).

That should work.
#2
07/17/2008 (5:50 am)
I believe I might be misunderstood, what I'm trying to achieve is when in basic torque the orc stands on top of the basic car and someone else jumps in and drives off, then the player that was standing on the car is in the same spot he was in, the car made him slide off as if he was on ice.
Now in real life and in other games if you stand on a vehicle like this and a friend drives off in it the car will take you with it or kill you depending on the take off speed. The player standing on top of the vehicle inherits the initial inertia of the car until the forces become to much for the player to stay on.
The player standing on the vehicle is not a passenger and is not meant to be.

Maybe that makes it more clear. But thanks Ron I'll keep that in mind.
#3
07/17/2008 (7:02 am)
This should help you out.