How to make car Controller|it’s magic game engine |#SGD_GAMER|@SPORIMEstudio



Hi guys
Kaisa ho ap Sabhi I hope this video is good.Scroll down for script

================================
Discord:
https://discord.com/invite/eXd6Rxt8DC
================================
My games:
Sporimestudio.itch.io
================================

((Script))
================================
/**
* @Author SPORIMEstudio
*/
public SpatialObject car;
public VehicleWheel fl,fr,bl,br;
public int Throttle,steer;

/// Run only once
@Override
public void start() {

}

/// Repeat every frame
@Override
public void repeat()
{
if(Input.getKey(“throttle”).isPressed())
{//forward moving
fl.setTorque(Throttle);
fr.setTorque(Throttle);
bl.setTorque(Throttle);
br.setTorque(Throttle);
}else if (Input.getKey(“rev”).isPressed())
{//this code for reverse torque of car
fl.setTorque(-Throttle);
fr.setTorque(-Throttle);
bl.setTorque(-Throttle);
br.setTorque(-Throttle);

}

//for steer the car
if(Input.getKey(“left”).isPressed())
{
fl.setSteer(steer);
fr.setSteer(steer);
}
else if (Input.getKey(“right”).isPressed())
{
fl.setSteer(-steer);
fr.setSteer(-steer);
}

}
================================

Thanks for watching✔️

source

Related posts

5 RAISONS d’acheter une XBOX SERIES X en 2024

Hello Kitty Day at the Park Review: The Kobayashi Badtz-Maru

Evolution of Android/IOS Flight Simulator Games

14 comments

@SurjoBanik-hx7fc November 12, 2024 - 6:36 am
Only legends know
Chatgpt😎
@tharangapriyanandana5267 November 12, 2024 - 6:36 am
🤩🤩🤩🤩
@ENEMY_69 November 12, 2024 - 6:36 am
Bro how to make speedometer and headlight pls make 1 video for subscribeer plss plss plss plss
@HarharMahadev-m2j November 12, 2024 - 6:36 am
Bhai yeah appe konce ha
@vitinxxx77 November 12, 2024 - 6:36 am
script câmera
@BB_GAMING_NK_official November 12, 2024 - 6:36 am
New update ka joystick video
@JctjjrrGgkytg November 12, 2024 - 6:36 am
भाई ऐसे तरीके जिससे हम घर कार जैसे और भी मॉडल डाउनलोड कर इस मैजिक के अंदर इंपोर्ट कर सके इस का कोई तरीका मैंने बहुत कोशिश की लेकिन इसका तरीका मुझे नहीं❤❤❤❤❤❤❤😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢😢
@Musiccom-yk4io November 12, 2024 - 6:36 am
bro java java pe video lekar aao
@TDCartoonVideos November 12, 2024 - 6:36 am
Salam u alakum bhai hum bigginer hai nato hamay coding ati hai na hamay thermal flow scripting bhai aap is per toturial banai JavaScript per takay hum os ko sekay our ham hodsay game banana shoro karay
@gameguru2 November 12, 2024 - 6:36 am
Bro How to Optimise it's magic engine game please full tutorial video please
@MrblockMrblock-u9o November 12, 2024 - 6:36 am
Bro ak player movement par video bana do😢😢😢
@Faizan0601 November 12, 2024 - 6:36 am
❤❤❤
@MrblockMrblock-u9o November 12, 2024 - 6:36 am
Bro it's magic engine me function kaise use karte hia or input kaise lete hai or it's magic engine me programming kaise karte hai please videos banao ya reply dedo
@RamTivari-h4i November 12, 2024 - 6:36 am
Game optimization system kaise bnaye btao kyo kii game lag ho raha hai 😢
First comment ❤❤

Comments are closed.

Add Comment