3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: need help 2 make my car drift and a map 4 my car location  (Read 875 times)

« on: April 06, 2013, 12:43:08 PM »
 :'( can somebody teach me how 2 make my car drift an make a gps 2 locate my car plz i will be thankful if u can send it as a project 4 me dats my car

f1 booster
f2 slow motion / f1 slow motion off
enter to jump car

plz help me out ???
« Reply #1 on: April 07, 2013, 03:24:43 AM »
Dude! Constantly reposting the same thing won't help you! The "Oh God Please Help Me" WON'T help you!

I'm going to ignore you from now on. Got what you wanted?
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #2 on: April 07, 2013, 03:32:13 AM »
Fox, did you look at that project I posted in another drift topic?

Type into google

Site:3drad.com/forum  Drift

Site:3drad.com/forum  mini map


You should fond what you want.
« Reply #3 on: February 22, 2014, 04:28:19 AM »
Can somebody please, PLEASE, ban this little kid!
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #4 on: March 08, 2014, 03:11:23 PM »
I don't know what you guys are complaining about but if you want to make your car drift you have the mess around with the settings in the PCar object and your gonna have to tweak it for each car model you use because every different car model has a different center of gravity and handles differently.
and it also all depends on how you want the car to drift like. if you want it to drift by pressing a specific button while holding left or right then you'll need to modify the PCars turbo script.
or you could just have the front wheel grip be higher than the rear wheel grip.
Code: [Select]
int MAX_AXLE_TORQUE_FRONT = 100;
int MAX_BRAKE_TORQUE_FRONT = 1;
int MAX_LONGITUDAL_GRIP_FRONT = 2;
int MAX_LATERAL_GRIP_FRONT = 3;
int SUSPENSION_SPRING_FRONT = 4;
int SUSPENSION_DAMPING_FRONT = 5;
int SUSPENSION_TRAVEL_FRONT = 1;
int SUSPENSION_TARGET_FRONT = 7;
int LONGITUDAL_EXTREMUM_SLIP_FRONT = 8;
int LONGITUDAL_EXTREMUM_FORCE_FRONT = 9;
int LONGITUDAL_ASYMPTOTE_SLIP_FRONT = 10;
int LONGITUDAL_ASYMPTOTE_FORCE_FRONT = 11;
int LATERAL_EXTREMUM_SLIP_FRONT = 12;
int LATERAL_EXTREMUM_FORCE_FRONT = 13;
int LATERAL_ASYMPTOTE_SLIP_FRONT = 14;
int LATERAL_ASYMPTOTE_FORCE_FRONT = 15;

int MAX_AXLE_TORQUE_REAR = 1300;
int MAX_BRAKE_TORQUE_REAR = 101;
int MAX_LONGITUDAL_GRIP_REAR = 302;
int MAX_LATERAL_GRIP_REAR = 303;
int SUSPENSION_SPRING_REAR = 104;
int SUSPENSION_DAMPING_REAR = 105;
int SUSPENSION_TRAVEL_REAR = 20;
int SUSPENSION_TARGET_REAR = 107;
int LONGITUDAL_EXTREMUM_SLIP_REAR = 108;
int LONGITUDAL_EXTREMUM_FORCE_REAR = 109;
int LONGITUDAL_ASYMPTOTE_SLIP_REAR = 110;
int LONGITUDAL_ASYMPTOTE_FORCE_REAR = 111;
int LATERAL_EXTREMUM_SLIP_REAR = 112;
int LATERAL_EXTREMUM_FORCE_REAR = 113;
int LATERAL_ASYMPTOTE_SLIP_REAR = 114;
int LATERAL_ASYMPTOTE_FORCE_REAR = 115;

int MAX_CAR_SPEED = 400;
int REVERSE_TORQUE_FACTOR = 201;

int CAR_BODY_FRICTION = 202;

void Main()
{
   if (iKeyDown(iKeyCode("DIK_lshift")))
   {
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_FRONT,2);
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_REAR,5);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_REAR,0.5);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_FRONT,0.2);
   }
   else
   {
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_FRONT,0.2);
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_REAR,0.2);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_REAR,2);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_FRONT,2);
   }
}
I be trippin!
« Reply #5 on: March 08, 2014, 11:05:45 PM »
Sir dog...
You are not using the PCar parameters  or the iObjectParam... correctly...
You changed a few parameters in the header list to numbers out of the range of the Pcar parameters - which will do nothing.
Using iObjectParamSet() with PCar deviates a little from what we're use to as for as the scripting convention we usually use.. -so I think this may have confused you a bit...

The header from the Pcar_scripted demo shows the list of PCar parameters that can be edited/changed;
but, "0" will always be for the parameter "MAX_AXLE_TORQUE_FRONT"
"1"  for MAX_BRAKE...

These parameters can be called anything else like:"FRONT_DOG_TORQUE = 0; <means> The PCar parameter for > MAX_AXLE_TORQUE_FRONT is 0. < thats the number you must have to call the first PCar setting.
To set "MAX_AXLE_TORQUE_FRONT":
-You would just use 0 for the int parameter in the proprietary iObjectParamSet(OBJ_0,0,2) or 
iObjectParamSet(OBJ_0,FRONT_DOG_TORQUE,2)

Then the float at the end of: iObjectParamSet... is the actual value you edit/set/change.
*see the original list from PCar demo... **notice the 2 groups of 16 + 8 (40) parameters we have access to >0-15, 100-115, 200-207 < but we must not change the value of these int to be able to access all these PCar parameters and set the values correctly for the corresponding PCar setting.

Code: [Select]
int MAX_AXLE_TORQUE_FRONT = 0;
int MAX_BRAKE_TORQUE_FRONT = 1;
int MAX_LONGITUDAL_GRIP_FRONT = 2;
int MAX_LATERAL_GRIP_FRONT = 3;
int SUSPENSION_SPRING_FRONT = 4;
int SUSPENSION_DAMPING_FRONT = 5;
int SUSPENSION_TRAVEL_FRONT = 6;
int SUSPENSION_TARGET_FRONT = 7;
int LONGITUDAL_EXTREMUM_SLIP_FRONT = 8;
int LONGITUDAL_EXTREMUM_FORCE_FRONT = 9;
int LONGITUDAL_ASYMPTOTE_SLIP_FRONT = 10;
int LONGITUDAL_ASYMPTOTE_FORCE_FRONT = 11;
int LATERAL_EXTREMUM_SLIP_FRONT = 12;
int LATERAL_EXTREMUM_FORCE_FRONT = 13;
int LATERAL_ASYMPTOTE_SLIP_FRONT = 14;
int LATERAL_ASYMPTOTE_FORCE_FRONT = 15;

int MAX_AXLE_TORQUE_REAR = 100;
int MAX_BRAKE_TORQUE_REAR = 101;
int MAX_LONGITUDAL_GRIP_REAR = 102;
int MAX_LATERAL_GRIP_REAR = 103;
int SUSPENSION_SPRING_REAR = 104;
int SUSPENSION_DAMPING_REAR = 105;
int SUSPENSION_TRAVEL_REAR = 106;
int SUSPENSION_TARGET_REAR = 107;
int LONGITUDAL_EXTREMUM_SLIP_REAR = 108;
int LONGITUDAL_EXTREMUM_FORCE_REAR = 109;
int LONGITUDAL_ASYMPTOTE_SLIP_REAR = 110;
int LONGITUDAL_ASYMPTOTE_FORCE_REAR = 111;
int LATERAL_EXTREMUM_SLIP_REAR = 112;
int LATERAL_EXTREMUM_FORCE_REAR = 113;
int LATERAL_ASYMPTOTE_SLIP_REAR = 114;
int LATERAL_ASYMPTOTE_FORCE_REAR = 115;

int MAX_CAR_SPEED = 200;
int REVERSE_TORQUE_FACTOR = 201;

int CAR_BODY_FRICTION = 202;
int CAR_BODY_RESTITUTION = 203;

int CENTER_OF_MASS_OFFSET_X = 204;
int CENTER_OF_MASS_OFFSET_Y = 205;
int CENTER_OF_MASS_OFFSET_Z = 206;
int TOTAL_MASS = 207;
..anyway you need to be able to set the correct parameters for PCar to drift
3D Rad: The best abandonware ever!
« Reply #6 on: March 09, 2014, 08:34:55 AM »
Sir dog...
You are not using the PCar parameters  or the iObjectParam... correctly...
You changed a few parameters in the header list to numbers out of the range of the Pcar parameters - which will do nothing.
Using iObjectParamSet() with PCar deviates a little from what we're use to as for as the scripting convention we usually use.. -so I think this may have confused you a bit...

The header from the Pcar_scripted demo shows the list of PCar parameters that can be edited/changed;
but, "0" will always be for the parameter "MAX_AXLE_TORQUE_FRONT"
"1"  for MAX_BRAKE...

These parameters can be called anything else like:"FRONT_DOG_TORQUE = 0; <means> The PCar parameter for > MAX_AXLE_TORQUE_FRONT is 0. < thats the number you must have to call the first PCar setting.
To set "MAX_AXLE_TORQUE_FRONT":
-You would just use 0 for the int parameter in the proprietary iObjectParamSet(OBJ_0,0,2) or 
iObjectParamSet(OBJ_0,FRONT_DOG_TORQUE,2)

Then the float at the end of: iObjectParamSet... is the actual value you edit/set/change.
*see the original list from PCar demo... **notice the 2 groups of 16 + 8 (40) parameters we have access to >0-15, 100-115, 200-207 < but we must not change the value of these int to be able to access all these PCar parameters and set the values correctly for the corresponding PCar setting.

Code: [Select]
int MAX_AXLE_TORQUE_FRONT = 0;
int MAX_BRAKE_TORQUE_FRONT = 1;
int MAX_LONGITUDAL_GRIP_FRONT = 2;
int MAX_LATERAL_GRIP_FRONT = 3;
int SUSPENSION_SPRING_FRONT = 4;
int SUSPENSION_DAMPING_FRONT = 5;
int SUSPENSION_TRAVEL_FRONT = 6;
int SUSPENSION_TARGET_FRONT = 7;
int LONGITUDAL_EXTREMUM_SLIP_FRONT = 8;
int LONGITUDAL_EXTREMUM_FORCE_FRONT = 9;
int LONGITUDAL_ASYMPTOTE_SLIP_FRONT = 10;
int LONGITUDAL_ASYMPTOTE_FORCE_FRONT = 11;
int LATERAL_EXTREMUM_SLIP_FRONT = 12;
int LATERAL_EXTREMUM_FORCE_FRONT = 13;
int LATERAL_ASYMPTOTE_SLIP_FRONT = 14;
int LATERAL_ASYMPTOTE_FORCE_FRONT = 15;

int MAX_AXLE_TORQUE_REAR = 100;
int MAX_BRAKE_TORQUE_REAR = 101;
int MAX_LONGITUDAL_GRIP_REAR = 102;
int MAX_LATERAL_GRIP_REAR = 103;
int SUSPENSION_SPRING_REAR = 104;
int SUSPENSION_DAMPING_REAR = 105;
int SUSPENSION_TRAVEL_REAR = 106;
int SUSPENSION_TARGET_REAR = 107;
int LONGITUDAL_EXTREMUM_SLIP_REAR = 108;
int LONGITUDAL_EXTREMUM_FORCE_REAR = 109;
int LONGITUDAL_ASYMPTOTE_SLIP_REAR = 110;
int LONGITUDAL_ASYMPTOTE_FORCE_REAR = 111;
int LATERAL_EXTREMUM_SLIP_REAR = 112;
int LATERAL_EXTREMUM_FORCE_REAR = 113;
int LATERAL_ASYMPTOTE_SLIP_REAR = 114;
int LATERAL_ASYMPTOTE_FORCE_REAR = 115;

int MAX_CAR_SPEED = 200;
int REVERSE_TORQUE_FACTOR = 201;

int CAR_BODY_FRICTION = 202;
int CAR_BODY_RESTITUTION = 203;

int CENTER_OF_MASS_OFFSET_X = 204;
int CENTER_OF_MASS_OFFSET_Y = 205;
int CENTER_OF_MASS_OFFSET_Z = 206;
int TOTAL_MASS = 207;
..anyway you need to be able to set the correct parameters for PCar to drift
sorry but thats how I always used it and it seemed to work for me.
I be trippin!
« Reply #7 on: March 09, 2014, 11:17:16 AM »
No... look what you posted and whats I highlighted - These other  parameters you changed but didn't use them in the code -wouldn't matter.
But if you tried to edit some of the parameters you changed you would get messed up results
You changed the first setting from 0 to 100
0 is MAX_AXLE_TORQUE_FRONT
100 is MAX_AXLE_TORQUE_REAR  -you basically changed the front to rear.
I've seen this before on these forums... can't imagine people get any results working with the PCar parameters this way.

int MAX_AXLE_TORQUE_FRONT = 100;
int MAX_BRAKE_TORQUE_FRONT = 1;
int MAX_LONGITUDAL_GRIP_FRONT = 2;
int MAX_LATERAL_GRIP_FRONT = 3;
int SUSPENSION_SPRING_FRONT = 4;
int SUSPENSION_DAMPING_FRONT = 5;
int SUSPENSION_TRAVEL_FRONT = 1;
int SUSPENSION_TARGET_FRONT = 7;
int LONGITUDAL_EXTREMUM_SLIP_FRONT = 8;
int LONGITUDAL_EXTREMUM_FORCE_FRONT = 9;
int LONGITUDAL_ASYMPTOTE_SLIP_FRONT = 10;
int LONGITUDAL_ASYMPTOTE_FORCE_FRONT = 11;
int LATERAL_EXTREMUM_SLIP_FRONT = 12;
int LATERAL_EXTREMUM_FORCE_FRONT = 13;
int LATERAL_ASYMPTOTE_SLIP_FRONT = 14;
int LATERAL_ASYMPTOTE_FORCE_FRONT = 15;

int MAX_AXLE_TORQUE_REAR = 1300;
int MAX_BRAKE_TORQUE_REAR = 101;
int MAX_LONGITUDAL_GRIP_REAR = 302;
int MAX_LATERAL_GRIP_REAR = 303;
int SUSPENSION_SPRING_REAR = 104;
int SUSPENSION_DAMPING_REAR = 105;
int SUSPENSION_TRAVEL_REAR = 20;
int SUSPENSION_TARGET_REAR = 107;
int LONGITUDAL_EXTREMUM_SLIP_REAR = 108;
int LONGITUDAL_EXTREMUM_FORCE_REAR = 109;
int LONGITUDAL_ASYMPTOTE_SLIP_REAR = 110;
int LONGITUDAL_ASYMPTOTE_FORCE_REAR = 111;
int LATERAL_EXTREMUM_SLIP_REAR = 112;
int LATERAL_EXTREMUM_FORCE_REAR = 113;
int LATERAL_ASYMPTOTE_SLIP_REAR = 114;
int LATERAL_ASYMPTOTE_FORCE_REAR = 115;

int MAX_CAR_SPEED = 400;
int REVERSE_TORQUE_FACTOR = 201;

int CAR_BODY_FRICTION = 202;

void Main()
{
   if (iKeyDown(iKeyCode("DIK_lshift")))
   {
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_FRONT,2);
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_REAR,5);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_REAR,0.5);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_FRONT,0.2);
   }
   else
   {
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_FRONT,0.2);
      iObjectParamSet(OBJ_0,LATERAL_EXTREMUM_FORCE_REAR,0.2);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_REAR,2);
      iObjectParamSet(OBJ_0,LATERAL_ASYMPTOTE_SLIP_FRONT,2);
   }
}
« Last Edit: March 09, 2014, 11:18:51 AM by Flish »
3D Rad: The best abandonware ever!
Pages: [1]