Can I Prevent Hover Vehicles from Flying Vertically?
by Shai Perry · in Torque Game Engine · 07/20/2006 (2:16 pm) · 5 replies
Currently, my hover vehicle can fly up a verticle building... Is there a way to limit this much like player has runSurfaceAngle in his datablock, or would this require an engine tweak to the hoverVehicle file?
Thanks
Thanks
#2
from what I see there's no such a thing in the vehicle/hovervehicle datablocks... does your hover vehicle
not go up certain slopes? did you take it from the example above too?
07/20/2006 (3:01 pm)
I took it from: http://tdn.garagegames.com/wiki/TorqueScript/Datablocks/HoverVehicleDatafrom what I see there's no such a thing in the vehicle/hovervehicle datablocks... does your hover vehicle
not go up certain slopes? did you take it from the example above too?
#3
07/24/2006 (4:56 pm)
Anybody else? :)
#4
place a point on each end of the vehicle and one at mission center and way below
the plane of the mission
like a center of earth reference
modify forward thrust based on the difference in distance of both points to reference
as the vehicle approaches 30 ' or more inclination the differences will greatly increase
yielding less thrust
the vehicle will still be able to move up an 89' slope but will come to a vitual crawl
however if your vehicle is short in true dimensions this will not help much
the thrust calcs should be possible with torque script and would be simplified by
using py scripts
it seems your hover craft is using distance from base to object surface rather than
mis/ter surface disregarding real world physics or maintaining a real gravimetric reference
07/26/2006 (8:53 am)
This will not be a simple solution but should provide a more realistic model of hoverplace a point on each end of the vehicle and one at mission center and way below
the plane of the mission
like a center of earth reference
modify forward thrust based on the difference in distance of both points to reference
as the vehicle approaches 30 ' or more inclination the differences will greatly increase
yielding less thrust
the vehicle will still be able to move up an 89' slope but will come to a vitual crawl
however if your vehicle is short in true dimensions this will not help much
the thrust calcs should be possible with torque script and would be simplified by
using py scripts
it seems your hover craft is using distance from base to object surface rather than
mis/ter surface disregarding real world physics or maintaining a real gravimetric reference
#5
What else needs doing other than adding that datablock to the code? Really not clear on Torque's vehicle script at all and none of the tutorials on hover vehicles seem any use unless you're using Torque 1.0.
07/29/2006 (2:18 pm)
How did you even get the hover vehicle working? I've tried that sample datablock many a time but can't even get it to create the vehicle.What else needs doing other than adding that datablock to the code? Really not clear on Torque's vehicle script at all and none of the tutorials on hover vehicles seem any use unless you're using Torque 1.0.
Torque Owner Stefan Lundmark