|
Post by Power Supersport on Feb 24, 2016 19:57:14 GMT
Here is part 4 of the Game Modelling series... I am very sorry for not uploading yesterday... I really got bored and tired and I was not able to record a proper video... I tried to record the drifting tutorial and it became 1 hour... Because I got so messed up in scripts... That's why the script is copied and pasted... Disclaimer! It's still my script, it's just now shown how I write it... In case you want to see the script: float RelativeSpeed(int object) { Vector3 SpeedVec, LocalZVec; Quaternion ObjRot; iObjectVelocity(object,SpeedVec); iObjectOrientation(object,ObjRot); iVectorRotate(LocalZVec,Vector3(1,0,0),ObjRot); return iVectorDot(LocalZVec,SpeedVec); }
Vector3 CarLoc;
float grip; float maxGrip = 100;
Quaternion CarOr;
void Main() {
if (iFloatAbs(RelativeSpeed(OBJ_0)) > 0) { grip = 150 - iFloatAbs(RelativeSpeed(OBJ_0)) * IN_0 / 1;
if (grip < 0) grip = 0; } else grip = iFloatTendTo(grip, grip, maxGrip, 0.02, 0);
if (iFloatAbs(RelativeSpeed(OBJ_0)) > 3) { OUT_44 = IN_0 * iFloatAbs(RelativeSpeed(OBJ_0)) / 20; } else OUT_44= 0;
OUT_8 = 0.15 * grip + 1; OUT_10 = grip + 1;
iObjectOrientation(OBJ_0,CarOr); iObjectOrientationSet(OBJ_66,CarOr);
OUT_66 = IN_0 - IN_0*0.3; }
And the video... Like and subscribe to support me and my channel... It's you that boosts me up to make these videos...
|
|
|
Post by HKG on Apr 3, 2016 14:39:05 GMT
hi and thx for the video its real helpful but i did not know how to make the car drift plz help
|
|
|
Post by Power Supersport on Apr 3, 2016 19:45:18 GMT
Everything is shown into the video...
Paste the script and connect it to the car and the rest objects progressivly...
|
|
|
Post by HKG on Apr 4, 2016 9:12:23 GMT
thx for the help and i will watch your videos in youtube if i have time
|
|
|
Post by Famer on Sept 18, 2016 12:21:38 GMT
Excuse me... It's a good idea but the drift particle density is very low in my game...
|
|