Author Topic: Snowmobile problems...  (Read 1100 times)

So i'm making a Snowmobile, it has three wheels (Two fronts for steering and a back wheel), i want the wheels to be invisible, but i'm having trouble doing this, also, i've been messing with the 'mass' and stuff trying to make the Snowmobile fall on its side when turning, and it seems to slow it down and/or make it have a hard time getting off the Spawn Brick, and the collision mesh, i have it's LOD set to -1, cause that's what i was told to use, but the collision keeps appearing at certain distances (Disappears when taking a screenshot of it, not if it's a Print Screen though), how do i fix these? D:

Current model (Might fix it up one day)
http://img.photobucket.com/albums/v142/TheRougeKnight/LegoMaster/Blockland_00646.png
http://img.photobucket.com/albums/v142/TheRougeKnight/LegoMaster/Blockland_00647.png

Visible collision mesh
http://img.photobucket.com/albums/v142/TheRougeKnight/LegoMaster/VisableCollision.png

The collision mesh shows up as the shadow too
http://img.photobucket.com/albums/v142/TheRougeKnight/LegoMaster/Blockland_00648.png

Flips over too easy (Yes i did enable 'Camera roll', to make it more interesting)
http://img.photobucket.com/albums/v142/TheRougeKnight/LegoMaster/Blockland_00649.png
http://img.photobucket.com/albums/v142/TheRougeKnight/LegoMaster/Blockland_00650.png

I was hoping i could fix these myself, i've been doing what i can, and... i failed ._.


Put 2 wheels in the front and 1 wheel in the back

I had this problem when the collision mesh shows up, just make the LODs on the vehicle parts 16 instead of 32 and make sure the collision mesh's LODs are -1.

Are you modeling in blender?

Put 2 wheels in the front and 1 wheel in the back
I put two wheel joints in front and one wheel joints in back, i can't put actual wheels on the snowmobile cause it would look strange

I had this problem when the collision mesh shows up, just make the LODs on the vehicle parts 16 instead of 32 and make sure the collision mesh's LODs are -1.
I'll try this

Are you modeling in blender?
Milkshape 3D

Flipping may be caused by its position on the xyz axis. make sure is rests on the visible plane.

Flipping may be caused by its position on the xyz axis. make sure is rests on the visible plane.
But that makes it flip back up :c

Flipping may be caused by its position on the xyz axis. make sure is rests on the visible plane.
Hmm, i'm pretty sure it rests right ON the grid, should it be a tad higher than the grid?

Hmm, i'm pretty sure it rests right ON the grid, should it be a tad higher than the grid?
Try it.
Edit: Is it in the center of the grid as well. In top view, is it in the middle of the axises that look like a +

Is it aligned in the center of that +

Try it.
Edit: Is it in the center of the grid as well. In top view, is it in the middle of the axises that look like a +

Is it aligned in the center of that +
From the Front/Back view, it's centered, from the Top view, i'll need to check, same with the Left/Right view

Edit: I raised the Snowmobile up a bit, changed the LOD of the vehicle parts, the collision still shows up at a certain distance and as the shadow :/

Also, i'm still trying to fix the other problems
Code: [Select]
datablock WheeledVehicleData(snowmobileVehicle)
{
category = "Vehicles";
displayName = " ";
shapeFile = "./snowmobile.dts"; //"~/data/shapes/skivehicle.dts"; //
emap = true;
minMountDist = 3;
   
   numMountPoints = 1;
   mountThread[0] = "sit";

maxDamage = 200.00;
destroyedLevel = 200.00;
speedDamageScale = 1.04;
collDamageThresholdVel = 20.0;
collDamageMultiplier   = 0.02;

massCenter = "0 0 0";
   //massBox = "2 5 1";

maxSteeringAngle = 0.5785;  // Maximum steering angle, should match animation
integration = 4;           // Force integration time: TickSec/Rate
tireEmitter = VehicleTireEmitter; // All the tires use the same dust emitter

// 3rd person camera settings
cameraRoll = true;         // Roll the camera with the vehicle
cameraMaxDist = 6;         // Far distance from vehicle
cameraOffset = 1;        // Vertical offset from camera mount point
cameraLag = 0.0;           // Velocity lag of camera
cameraDecay = 0.75;        // Decay per sec. rate of velocity lag
cameraTilt = 0.4;
   collisionTol = 0.1;        // Collision distance tolerance
   contactTol = 0.1;

useEyePoint = false;

defaultTire = snowmobileTire;
defaultSpring = snowmobileSpring;
//flatTire = snowmobileFlatTire;
//flatSpring = snowmobileFlatSpring;

   numWheels = 3;

// Rigid Body
mass = 500;
density = 5.0;
drag = 1.6;
bodyFriction = 0.6;
bodyRestitution = 0.6;
minImpactSpeed = 10;        // Impacts over this invoke the script callback
softImpactSpeed = 10;       // Play SoftImpact Sound
hardImpactSpeed = 15;      // Play HardImpact Sound
groundImpactMinSpeed    = 10.0;

// Engine
engineTorque = 12000; //4000;       // Engine power
engineBrake = 6500;         // Braking when throttle is 0
brakeTorque = 50000;        // When brakes are applied
maxWheelSpeed = 30;        // Engine scale by current speed / max speed

rollForce = 900;
yawForce = 600;
pitchForce = 1000;
rotationalDrag = 0.2;

   // Advanced Steering
   steeringAutoReturn = true;
   steeringAutoReturnRate = 0.9;
   steeringAutoReturnMaxSpeed = 10;
   steeringUseStrafeSteering = true;
   steeringStrafeSteeringRate = 0.1;

// Energy
maxEnergy = 100;
jetForce = 3000;
minJetEnergy = 30;
jetEnergyDrain = 2;

splash = vehicleSplash;
splashVelocity = 4.0;
splashAngle = 67.0;
splashFreqMod = 300.0;
splashVelEpsilon = 0.60;
bubbleEmitTime = 1.4;
splashEmitter[0] = vehicleFoamDropletsEmitter;
splashEmitter[1] = vehicleFoamEmitter;
splashEmitter[2] = vehicleBubbleEmitter;
mediumSplashSoundVelocity = 10.0;   
hardSplashSoundVelocity = 20.0;   
exitSplashSoundVelocity = 5.0;

//mediumSplashSound = "";
//hardSplashSound = "";
//exitSplashSound = "";

// Sounds
//   jetSound = ScoutThrustSound;
//engineSound = idleSound;
//squealSound = skidSound;
softImpactSound = slowImpactSound;
hardImpactSound = fastImpactSound;
//wheelImpactSound = slowImpactSound;

//   explosion = VehicleExplosion;
justcollided = 0;

   uiName = "Snowmobile ";
rideable = true;
lookUpLimit = 0.65;
lookDownLimit = 0.45;

paintable = true;
   
   damageEmitter[0] = VehicleBurnEmitter;
damageEmitterOffset[0] = "0.0 0.0 0.0 ";
damageLevelTolerance[0] = 0.99;

   damageEmitter[1] = VehicleBurnEmitter;
damageEmitterOffset[1] = "0.0 0.0 0.0 ";
damageLevelTolerance[1] = 1.0;

   numDmgEmitterAreas = 1;

   initialExplosionProjectile = snowmobileExplosionProjectile;
   initialExplosionOffset = 0;         //offset only uses a z value for now

   burnTime = 4000;

   finalExplosionProjectile = snowmobileFinalExplosionProjectile;
   finalExplosionOffset = 0.5;          //offset only uses a z value for now

   minRunOverSpeed    = 4;   //how fast you need to be going to run someone over (do damage)
   runOverDamageScale = 8;   //when you run over someone, speed * runoverdamagescale = damage amt
   runOverPushScale   = 1.2; //how hard a person you're running over gets pushed

   //protection for passengers
   protectPassengersBurn   = false;  //protect passengers from the burning effect of explosions?
   protectPassengersRadius = true;  //protect passengers from radius damage (explosions) ?
   protectPassengersDirect = false; //protect passengers from direct damage (bullets) ?
};


Edit 2: I seem to have fixed the 'having trouble getting off the Spawn Brick' problem, all i did was move the wheel joints out of the model
« Last Edit: November 08, 2009, 03:43:04 PM by Masterlegodude »

What I do not like is how the front looks. It looks too big, make it smaller and add handle bars and a visor?

EDIT: And add a black seat on the rear of where you mount, Just like Kaje's Scooter.

What I do not like is how the front looks. It looks too big, make it smaller and add handle bars and a visor?
You didn't read at all.


What I do not like is how the front looks. It looks too big, make it smaller and add handle bars and a visor?

EDIT: And add a black seat on the rear of where you mount, Just like Kaje's Scooter.
I don't exactly like the front either, looks too un-detailed, but i didn't want the model to have too much polys or something, i wanted to keep it simple for now, i might update the model when it's done, i was thinking of handle bars and a visor, but the handle bar would be useless cause the player's hands wouldn't be able to hold onto them in a way that wouldn't look strange, the visor would be useless too, cause the players would be looking over it (I'm not sure why real snowmobiles have them when drivers look over them as well :o), as for the back seat, the reference image i used did not have a back seat