Game Development Community

Flying Object

by Chan Chi Kit · in Torque Game Engine · 12/29/2005 (11:00 am) · 1 replies

I want to control a flying object in the game by Hovervehicle, should I add any dummy to my mesh (3DS Max)?

By the way, why there is a flying object shadow if I put it to game engine with Flyingvehicle, but it did not have shadow if I used Hovervehicle in then game.

In the game, can I control the height of object with Hovervehicle...?

The followings are the script that I added, which are according to the web:
http://www.garagegames.com/mg/forums/result.thread.php?qt=20742

function HoverVehicleData::create(%block)
{
%obj = new HoverVehicle() {
dataBlock = %block;
//transform = "(12.2672 41.7805 344.273)";
};
%obj.mountable = true;
return(%obj);
}

datablock HoverVehicleData(Hover)
{
spawnOffset = "0 0 1";

floatingGravMag = 55.5;

category = " hawk ";
shapeFile = "~/data/shapes/hawk.dts";
emap = true;

maxDamage = 1000.0;
destroyedLevel = 900.0;

drag = 0.2;
density = 0.3;

integration = 4; // Physics integration: TickSec/Rate
collisionTol = 0.3; // Collision distance tolerance
contactTol = 0.2; // Contact velocity tolerance

rechargeRate = 0.7;
energyPerDamagePoint = 75;
maxEnergy = 650;
minJetEnergy = 165;
jetEnergyDrain = 1.3;

mass = 90;
bodyFriction = 0.1;
bodyRestitution = 0.3;
softImpactSpeed = 20;
hardImpactSpeed = 28;
minImpactSpeed = 29;
speedDamageScale = 0.10;

collDamageThresholdVel = 23;
collDamageMultiplier = 0.030;

dragForce = 1.0;
// dragForce = 25 / 45.0;
vertFactor = 0.8;
floatingThrustFactor = 0.5;

mainThrustForce = 600;
reverseThrustForce = 600;
strafeThrustForce = 670;
turboFactor = 1.5;

brakingForce = 900;
brakingActivationSpeed = 30;

stabLenMin = 28.50;
stabLenMax = 32.50;
stabSpringConstant = 38;
stabDampingConstant = 50;

gyroDrag = 18;
normalForce = 30;
restorativeForce = 16;
steeringForce = 100;
rollForce = 30;
pitchForce = 30;
triggerDustHeight = 0.5;
dustHeight = 1.0;

dustTrailOffset = "0.0 -1.0 0.5";
triggerTrailHeight = 2.6;
dustTrailFreqMod = 15.0;

maxMountSpeed = 0.1;
mountDelay = 2;
dismountDelay = 1;

stationaryThreshold = 0.5;
maxDismountSpeed = 0.1;
numMountPoints = 2;

mountPose[0] = "Sitting";
mountPointTransform[0] = "0 0 0 0 0 1 0";
isProtectedMountPoint[0] = false;


minMountDist = 4;
};

#1
12/30/2005 (9:49 am)
Does anyone know what dummy to be added in creating flying object?

Or should I post my question to artist forum...?

Thanks!