Author Topic: Collision of a Ship (rowboat)  (Read 2577 times)

how do i change a Collision for a bot?
« Last Edit: September 04, 2013, 02:18:31 PM by nuketf »

Bot.boundingBox = "5 5 10.6"; and Bot.crouchBoundingBox = "5 5 4";

Those are the values for the default player types that use the Blockhead model.

Bot.boundingBox = "5 5 10.6"; and Bot.crouchBoundingBox = "5 5 4";

Those are the values for the default player types that use the Blockhead model.

thanks this will help fix the collision with my ship!

now its not in the spawn menu

now its not in the spawn menu
Is there a syntax error? Post the code and a console log.

Is there a syntax error? Post the code and a console log.

idk but somereasion blockland isnt leting me uplode anything so..here is the .cs


Code: [Select]
datablock ParticleEmitterData(FF02FoamEmitter)
{
   ejectionPeriodMS = 3;
   periodVarianceMS = 0;
   ejectionVelocity = 3.0;
   velocityVariance = 1.0;
   ejectionOffset   = 1.0;
   thetaMin         = 80;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "PlayerFoamParticle";

   useEmitterColors = true;

   uiName = "FF02 Foam";
};

datablock PlayerData(FF02Armor : PlayerStandardArmor)
{
cameraVerticalOffset = 3;
shapefile = "./FF02.dts";
canJet = 0;
mass = 120;
   drag = 0.03;
   density = 0.6;
   runSurfaceAngle = 1;
   jumpSurfaceAngle = 1;
   maxForwardSpeed = 0;
   maxBackwardSpeed = 0;
   maxBackwardCrouchSpeed = 0;
   maxForwardCrouchSpeed = 0;
   maxSideSpeed = 0;
   maxSideCrouchSpeed = 0;
   maxStepHeight = 0;
   maxUnderwaterSideSpeed = 0;

uiName = "aFF02 ";
showEnergyBar = false;

   jumpForce = 0;
   jumpEnergyDrain = 10000;
   minJumpEnergy = 10000;
   jumpDelay = 127;
   minJumpSpeed = 0;
   maxJumpSpeed = 0;

rideable = true;
canRide = false;
paintable = true;

   boundingBox = vectorScale("2.99 19.885"7.245);
   crouchBoundingBox = vectorScale("2.99 19.885"7.245);

   lookUpLimit = 0.65;
lookDownLimit = 0.45;

   numMountPoints = 3;
   mountThread[0] = "sit";
   mountThread[1] = "sit";
   mountThread[2] = "sit";


   splashEmitter[0] = FF01FoamEmitter;
   splashEmitter[1] = FF01FoamEmitter;
   splashEmitter[2] = FF01FoamEmitter;

   
   upMaxSpeed = 1;
   upResistSpeed = 1;
   upResistFactor = 1;
   maxdamage = 260;

   minImpactSpeed = 250;
   speedDamageScale = 3.8;

   useCustomPainEffects = true;
   PainHighImage = "";
   PainMidImage  = "";
   PainLowImage  = "";
   painSound     = "";
   deathSound    = "";
};

Code: [Select]
   boundingBox = vectorScale("2.99 19.885"7.245);
   crouchBoundingBox = vectorScale("2.99 19.885"7.245);
Syntax errors on these two lines. Change it to:
Code: [Select]
   boundingBox = vectorScale("2.99 19.885 7.245");
   crouchBoundingBox = vectorScale("2.99 19.885 7.245");

i put it in and its just like it was befor the only collision is in the middle of the ship

i put it in and its just like it was befor the only collision is in the middle of the ship
Just make the collision box bigger?

its covering the hole ship


ingame the only part that haves collision is in the middle the rest of the ship dos not

ingame the only part that haves collision is in the middle the rest of the ship dos not
Just increase the size of
Code: [Select]
   boundingBox = vectorScale("2.99 19.885 7.245");
   crouchBoundingBox = vectorScale("2.99 19.885 7.245");

Just increase the size of
Code: [Select]
   boundingBox = vectorScale("2.99 19.885 7.245");
   crouchBoundingBox = vectorScale("2.99 19.885 7.245");


i changed it do

Code: [Select]
   boundingBox = vectorScale("2.999 19.999 7.245");
   crouchBoundingBox = vectorScale("2.999 19.999 7.245");


and it didnt chang a thing!


i changed it do

Code: [Select]
   boundingBox = vectorScale("2.999 19.999 7.245");
   crouchBoundingBox = vectorScale("2.999 19.999 7.245");


and it didnt chang a thing!
It probably did. Adding .009 .114 is probably just way too small to notice.

Why are you using vectorScale anyways?