|
Post by MonstaWolf on Jun 23, 2015 19:47:32 GMT
So, I'm trying to create a Burnout-style game, with lots of crashes. The streets are pretty wide in my city model, and the car handles really easily, making collisions really easy to dodge. No matter what I do, it's too easy to control. It can to a 90-degree turn almost instantly without any brakes. Btw, I have my gravity set to like 12. Is that a problem? OBS FILE HERE (I felt the need for that to be caps)
|
|
|
Post by Power Supersport on Jun 23, 2015 20:30:56 GMT
Nope, Increasing G-Force is not a problem...
It's even recommended... Sometimes you just feel that 9.8066 is too low for a gravity...
But... I still don't get your core of the question... What you ask for?
|
|
|
Post by MonstaWolf on Jun 23, 2015 20:48:52 GMT
Well, Make it so you at least have to brake around turns... if you try it out on a simple flat-map with obstacles, you'll see what I mean. I want it to turn more realistically. It can do an instant 90-degree turn, without braking. I want it to turn better when going slower, like a real car, so it's harder to avoid crashing.
Do I need less of a steering angle? Or maybe some suspension changes?
|
|
|
Post by Thunder on Jun 23, 2015 20:51:40 GMT
I guess steering angle.
|
|
|
Post by MonstaWolf on Jun 23, 2015 20:52:52 GMT
I already have it set down to 11.5 or something though...
|
|
|
Post by Power Supersport on Jun 23, 2015 21:01:41 GMT
OK... when speed increases, the angle decreases...
Something like this...
Angle = (90 - speed) / 3 + 5
|
|
|
Post by MonstaWolf on Jun 23, 2015 22:01:13 GMT
Is there any way to make the angle value change based on speed?
|
|
|
Post by Power Supersport on Jun 24, 2015 4:04:22 GMT
It's in front of you man! I just typed it into my previous post...
You just replace the "angle" with the OUT_X of the steering angle and "speed" with IN_X of the speed of the car...
|
|
|
Post by MonstaWolf on Jun 24, 2015 13:57:14 GMT
Okay, so I made a script based off that, but it doesn't appear to be doing anything. Do I have to add to it, or should I just change the numbers around?
void Main()
{
OUT_0=(90-IN_2)/3+5
}
|
|
|
Post by Power Supersport on Jun 24, 2015 14:30:10 GMT
Try this and adjust the values by your taste...
OUT_8 = 6.5 - IN_0*0.2
|
|
|
Post by MonstaWolf on Jun 24, 2015 14:31:22 GMT
Okay, Thanks!
|
|
|
Post by MonstaWolf on Jun 24, 2015 14:51:19 GMT
So, It's still not working, and I don't know why. I took a screenshot of the script this time, just in case that'll help. I have to go right now, I may be on later. Thanks in advance. Attachments:
|
|
|
Post by Power Supersport on Jun 24, 2015 15:01:11 GMT
float grip = 6.5 - IN_0*0.2;
iObjectParamSet(OBJ_0,3,grip);
|
|
|
Post by MonstaWolf on Jun 25, 2015 13:10:34 GMT
Hang on, I can't seem to find a parameter for the max turn angle. I looked in the pcarscripteddemo.3dr project, and it isn't listed.
|
|
|
Post by Power Supersport on Jun 25, 2015 16:38:42 GMT
That's why you control the grip... That's what I show you...
|
|
|
Post by MonstaWolf on Jun 26, 2015 13:55:35 GMT
Okay so I edited the script to make it affect the back wheels too, making it not spin out. Works near-perfectly. Thanks for the help man.
|
|
|
Post by Power Supersport on Jun 26, 2015 13:58:06 GMT
Well done then...
|
|