SlideShare a Scribd company logo
1 of 19
Download to read offline
Game progamming, adalah
pengembangan perangkat lunak video
game. Yang melibatkan programmer game
profesional, banyak siswa dapatprofesional, banyak siswa dapat
memprogram game sebagai hobi. Dan juga
sebagai latihan untuk belajar bahasa
pemrograman atau sistem operasi
MULTIPLAYER RACING GAME
DENGAN UNITY
Unity merupakan sebuah game engine yang
mampu membangun game baik 3D maupun 2D
dimana game tersebut dapat di Compile dan
dijalankan pada beberapa platform yang berbeda.dijalankan pada beberapa platform yang berbeda.
Unity hampir memiliki semua fitur yang
dibutuhkan oleh seorang game developer dalam
pembuatan game.
Pada konsep game ini saya ingin
membuat game racing yang
berbasis 3D yang terdapat fitur
multiplayer yang nantinya dapat
dimainkan oleh 2 orang atau lebihdimainkan oleh 2 orang atau lebih
Model yang di terapkan adalah
sebuah mobil 3d yang dapat
melaju di datas circuit .dalam
perancangan model yang
digunakan berdasarkan dari unitydigunakan berdasarkan dari unity
assets yang kemudian akan
dilakukan perubahan bentuk
warna teksture dan lain2
• Membuat Layout Game
• Scripting
• Pembuatan GUI• Pembuatan GUI
Game layout ini adalah dimana sebuah daerah
pegunungan dan dataran tinggi yang terletak dekat dengan
pesisir pantai dimana terdapat sebuah circuit balapan di
daerah itu. yang dapat memberikan suasana natural pada
area balapan
Layout game yang digunakan berasal dari unity
assets . Unity assets berisi Karakter model, alat peraga,
bahan dan tekstur, alat lanscape lukisan, alat permainan
menciptakan, efek audio dan musik, pemrograman visual,
script dan ekstensi . Unity assets dapat di download pada
website resmi nya http://unity3d.com/asset-store/
Jika sudah mencoba ,buka scene bernama
Download project dalam bentuk zip dari http://unity3d.com/support/resources/fi
les/CarTutorial.zip
Lalu pertama dengan membuka ‘CompleteScene’. Di scene ini sudah terdapat desain
mobil jadi anda bisa mencoba untuk menekan tombol “play”ini akan menunjukan hasil
dari proses pembuatan
.
Assembling the Car
Jika sudah mencoba ,buka scene bernama
’TheTrack’. Scene ini berisi apa yang
dibutuhkan untuk balapan kecuali bagian
paling penting mobil , kemudian drag mobil
kedalam scene didalam tampilan project yang
terdapat pada Models/Car/catamount.
Adding Collision • Click on the Collider_Bottom game object
• Go to the Component/Physics Menu and
click the MeshCollider to add one to the game
object.
• Click the Material dropdown-selector on the
newly added MeshCollider component and
select
the Car physics material.
• Check the two boxes ‘Smooth Sphere
Collisions’ and ‘Convex’Collisions’ and ‘Convex’
• Since the colliders are going to be invisible,
go ahead and remove the MeshRenderer and
Mesh
Filter Components from the GameObject
(Click the small cog wheel to the right of the
Components
and select ‘Remove Component’.
• Do the same as above for the Collider_Top
game object.
Shadow settings for the car model
Body: Cast Shadows enabled. Receive Shadows disabled.
Body Interior: Cast Shadows enabled. Receive Shadows disabled.
Car Windows: Cast and Receive Shadows disabled
DiscBrakes: Cast and Receive Shadows disabled
Kemudian mengatur settingan shadow dari desain
mobil
DiscBrakes: Cast and Receive Shadows disabled
Wheels: Cast Shadows enabled. Receive shadows disabled.
Adding the Car’s Components
go to the Components menu and select
Physics/RigidBody
The car obviously weighs more than just one
kilo, so start by changing the Rigidbody’s mass
to
something more realistic like 1500.
Next we have the drag and angularDrag properties, which are forces that slow downNext we have the drag and angularDrag properties, which are forces that slow down
the Rigidbody’s
speed and rotation. We will control the drag of the car through scripting, so just set the
drag and angularDrag properties to 0.
Locate the Car.js script in the folder ‘scripts/JavaScripts’ and drag it onto the Car
GameObject.
This script is the “engine” of the car,
First of all, the car script needs to know about
the
wheels that the car has. In the Inspector you
will
see the Front Wheels and the Rear Wheels,
and
notice that both of them can be expanded by
clicking
on the small arrow to the left of the names.
• Set the size of the Front and Rear Wheels to 2, making room for two front wheels and two
rear wheels.
• Now expand the WheelFL, WheelFR, WheelRL and WheelRR in the inspector. You will see• Now expand the WheelFL, WheelFR, WheelRL and WheelRR in the inspector. You will see
that they each have a Disc Brake a child, and that each disc brake has a wheel as a child. For
now you should be content with knowing that the disc brake and wheel game objects are the
graphical representation of the wheel.
• Drag the DiscBrakeFL and DiscBrakeFR to the two open slots in the Front Wheels under the
Car script and the DiscBrakeRL and Disk Brakerr to the slots under the Rear Wheels.
• You might ask - why are the DiscBrakes the wheels? And the explanation is simple: The disc
brakes are parent Game Objects to the tire graphics, so setting the discs as wheels will include
the tires.
Adding a blob shadow • In the Hierarchy, create an empty
GameObject and drag it to the Car to make it a
child of it.
• Name it ‘Blob shadow projector’
• Add a Projector component to the Blob
shadow projector (Component->Renderer-
>Projector)
• Set the projectors Near Clip Plane to 0.1, its
Far Clip Plane to 50, its Field of View to 30.
• Assign the Blob_shadow material to its
Material slot.Material slot.
• In the ‘Ignore Layers’ select ‘Everything’ and
then deselect the ‘Road’ layer, thus making
the
projector only cast the blob shadow on the
road.
• Add the BlobShadowController.js script (in
the Scripts/CSharpScripts folder in the Project
view)
Skidmarks
To enhance
the effect of the wheels
sliding on the road and
make it a bit more
believable, we are going
to
add some skidmarks to
the surface we’re drivingthe surface we’re driving
on when the car is sliding.
We have created a prefab for this that you can just drag into the scene:
• Drag the Skidmarks prefab from Prefabs->VFX->Skidmarks into the scene.
Center of Mass
• Create a new GameObject and drag it to the Car game object.
• Rename it to CenterOfMass
• Reset the CenterOfMass’s Transform (click the little cog wheel to the right
of the Transform in
the Inspector and select ‘Reset’. This will give it the same position as its
parent, the car.
• Adjust its position to somewhere you like. Either do it by dragging, or type in
the position. A
good position for this car’s center of mass could be (0, 0.1, 0.65).
• In the Inspector assign the CenterOfMass to the slot for it in the Car script• In the Inspector assign the CenterOfMass to the slot for it in the Car script
Component.
If you have followed along and assembled your own version of
the car, you now have the knowledge
needed to implement it in your own projects. An easy way to
transfer it across projects is to
make a Unity Package from the needed Prefabs.
First lets turn the car we made into a Prefab so it can be reused
without doing the assembling and
Exporting the car as a package
tweaking:
• In the Project view click ‘Create’ and select ‘Prefab’. You will• In the Project view click ‘Create’ and select ‘Prefab’. You will
get an empty Prefab in the project
view named ‘new prefab’.
• Rename the Prefab to ‘Race Car’ (a nice palindrome) or any
other name to your liking.
• Drag the Car GameObject from the Hierarchy view and onto
the Prefab.
2013-48. Game Progamming

More Related Content

Viewers also liked

Construct 2 Platformer: Step by Step
Construct 2 Platformer: Step by StepConstruct 2 Platformer: Step by Step
Construct 2 Platformer: Step by StepShahed Chowdhuri
 
02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)
02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)
02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)Lab Mobile Filkom UB
 
Pemrograman desktop
Pemrograman desktopPemrograman desktop
Pemrograman desktopKawaguchiTaro
 
GAME FLASH THE ANIMALS MI13C
 GAME FLASH THE ANIMALS MI13C GAME FLASH THE ANIMALS MI13C
GAME FLASH THE ANIMALS MI13Calfian_df
 
Materi Pemrograman Desktop
Materi Pemrograman DesktopMateri Pemrograman Desktop
Materi Pemrograman Desktopachmad fahrizal
 
Heuristic search-best-first-search
Heuristic search-best-first-searchHeuristic search-best-first-search
Heuristic search-best-first-searchAMIK AL MA'SOEM
 
Purwarupa Komik Interaktif Safety Riding Berkonsep Digital Storytelling
Purwarupa Komik Interaktif Safety Riding Berkonsep Digital StorytellingPurwarupa Komik Interaktif Safety Riding Berkonsep Digital Storytelling
Purwarupa Komik Interaktif Safety Riding Berkonsep Digital StorytellingToto Haryadi
 
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)Lab Mobile Filkom UB
 
Artificial Intelligence - A Star
Artificial Intelligence - A StarArtificial Intelligence - A Star
Artificial Intelligence - A StarJayner Wennyi
 
Metode pengembangan game digital
Metode pengembangan game digitalMetode pengembangan game digital
Metode pengembangan game digitalToto Haryadi
 
Game analysis - Transactional Analysis
Game analysis - Transactional AnalysisGame analysis - Transactional Analysis
Game analysis - Transactional AnalysisManu Melwin Joy
 
Psychological Games People Play - Transactional Analysis
Psychological Games People Play - Transactional AnalysisPsychological Games People Play - Transactional Analysis
Psychological Games People Play - Transactional AnalysisManu Melwin Joy
 
20 Game Ideas You Should Steal
20 Game Ideas You Should Steal20 Game Ideas You Should Steal
20 Game Ideas You Should StealStuart Dredge
 
An introduction to Game Theory
An introduction to Game TheoryAn introduction to Game Theory
An introduction to Game TheoryPaul Trafford
 

Viewers also liked (15)

Construct 2 Platformer: Step by Step
Construct 2 Platformer: Step by StepConstruct 2 Platformer: Step by Step
Construct 2 Platformer: Step by Step
 
02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)
02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)
02 - Game Development: Best Practice (Febri 'Ebinkatsu' Abdullah)
 
Pemrograman desktop
Pemrograman desktopPemrograman desktop
Pemrograman desktop
 
GAME FLASH THE ANIMALS MI13C
 GAME FLASH THE ANIMALS MI13C GAME FLASH THE ANIMALS MI13C
GAME FLASH THE ANIMALS MI13C
 
Materi Pemrograman Desktop
Materi Pemrograman DesktopMateri Pemrograman Desktop
Materi Pemrograman Desktop
 
Heuristic search-best-first-search
Heuristic search-best-first-searchHeuristic search-best-first-search
Heuristic search-best-first-search
 
Purwarupa Komik Interaktif Safety Riding Berkonsep Digital Storytelling
Purwarupa Komik Interaktif Safety Riding Berkonsep Digital StorytellingPurwarupa Komik Interaktif Safety Riding Berkonsep Digital Storytelling
Purwarupa Komik Interaktif Safety Riding Berkonsep Digital Storytelling
 
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
03 - Membangun Aplikasi Mobile Berkualitas (Herman Tolle)
 
Artificial Intelligence - A Star
Artificial Intelligence - A StarArtificial Intelligence - A Star
Artificial Intelligence - A Star
 
Metode pengembangan game digital
Metode pengembangan game digitalMetode pengembangan game digital
Metode pengembangan game digital
 
Game analysis - Transactional Analysis
Game analysis - Transactional AnalysisGame analysis - Transactional Analysis
Game analysis - Transactional Analysis
 
Psychological Games People Play - Transactional Analysis
Psychological Games People Play - Transactional AnalysisPsychological Games People Play - Transactional Analysis
Psychological Games People Play - Transactional Analysis
 
20 Game Ideas You Should Steal
20 Game Ideas You Should Steal20 Game Ideas You Should Steal
20 Game Ideas You Should Steal
 
Game theory
Game theoryGame theory
Game theory
 
An introduction to Game Theory
An introduction to Game TheoryAn introduction to Game Theory
An introduction to Game Theory
 

Similar to 2013-48. Game Progamming

3dsmaxdesign 2010 using_autodesk_revit_files00
3dsmaxdesign 2010 using_autodesk_revit_files003dsmaxdesign 2010 using_autodesk_revit_files00
3dsmaxdesign 2010 using_autodesk_revit_files00An Nam Education
 
CAD Portfolio - Karan Shah
CAD Portfolio - Karan ShahCAD Portfolio - Karan Shah
CAD Portfolio - Karan ShahKaran Shah
 
Demystifying Angular Animations
Demystifying Angular AnimationsDemystifying Angular Animations
Demystifying Angular AnimationsGil Fink
 
ANM3D-UWG-2020-12.pptx
ANM3D-UWG-2020-12.pptxANM3D-UWG-2020-12.pptx
ANM3D-UWG-2020-12.pptxAhmadFairuzabadi1
 
Solidworks tips - First edition.pdf
Solidworks tips - First edition.pdfSolidworks tips - First edition.pdf
Solidworks tips - First edition.pdfZaheerAhmed905221
 
BYOD: Build Your First VR Experience with Unreal Engine
BYOD: Build Your First VR Experience with Unreal EngineBYOD: Build Your First VR Experience with Unreal Engine
BYOD: Build Your First VR Experience with Unreal EngineMichael Sheyahshe
 
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil Tayar
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil TayarVisual Testing: The Missing Piece of the Puzzle -- presentation by Gil Tayar
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil TayarApplitools
 
Tutautosketch getting started
Tutautosketch  getting startedTutautosketch  getting started
Tutautosketch getting startedramzihajjaji1
 
Design book[1]
Design book[1]Design book[1]
Design book[1]nzende
 
HTML5 Game Development frameworks overview
HTML5 Game Development frameworks overviewHTML5 Game Development frameworks overview
HTML5 Game Development frameworks overviewAbhishek Singhal [L.I.O.N]
 
Robotics Portfolio
Robotics PortfolioRobotics Portfolio
Robotics PortfolioRaphael Chang
 
GuideMaker Design Customization Guideline
GuideMaker Design Customization GuidelineGuideMaker Design Customization Guideline
GuideMaker Design Customization GuidelineiLandGuide Worldwide Inc.
 
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...Katy Slemon
 
Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.jsVerold
 

Similar to 2013-48. Game Progamming (20)

3dsmaxdesign 2010 using_autodesk_revit_files00
3dsmaxdesign 2010 using_autodesk_revit_files003dsmaxdesign 2010 using_autodesk_revit_files00
3dsmaxdesign 2010 using_autodesk_revit_files00
 
CAD Portfolio - Karan Shah
CAD Portfolio - Karan ShahCAD Portfolio - Karan Shah
CAD Portfolio - Karan Shah
 
Demystifying Angular Animations
Demystifying Angular AnimationsDemystifying Angular Animations
Demystifying Angular Animations
 
ANM3D-UWG-2020-12.pptx
ANM3D-UWG-2020-12.pptxANM3D-UWG-2020-12.pptx
ANM3D-UWG-2020-12.pptx
 
Solidworks tips - First edition.pdf
Solidworks tips - First edition.pdfSolidworks tips - First edition.pdf
Solidworks tips - First edition.pdf
 
Synergis University 2014 - Inventor Performance Optimization
Synergis University 2014 - Inventor Performance OptimizationSynergis University 2014 - Inventor Performance Optimization
Synergis University 2014 - Inventor Performance Optimization
 
BYOD: Build Your First VR Experience with Unreal Engine
BYOD: Build Your First VR Experience with Unreal EngineBYOD: Build Your First VR Experience with Unreal Engine
BYOD: Build Your First VR Experience with Unreal Engine
 
AOA Research process
AOA Research  processAOA Research  process
AOA Research process
 
AOA Research process
AOA Research  processAOA Research  process
AOA Research process
 
Programmers guide
Programmers guideProgrammers guide
Programmers guide
 
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil Tayar
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil TayarVisual Testing: The Missing Piece of the Puzzle -- presentation by Gil Tayar
Visual Testing: The Missing Piece of the Puzzle -- presentation by Gil Tayar
 
Alexey Savchenko, Unreal Engine
Alexey Savchenko, Unreal EngineAlexey Savchenko, Unreal Engine
Alexey Savchenko, Unreal Engine
 
Tutautosketch getting started
Tutautosketch  getting startedTutautosketch  getting started
Tutautosketch getting started
 
Design book[1]
Design book[1]Design book[1]
Design book[1]
 
unity basics
unity basicsunity basics
unity basics
 
HTML5 Game Development frameworks overview
HTML5 Game Development frameworks overviewHTML5 Game Development frameworks overview
HTML5 Game Development frameworks overview
 
Robotics Portfolio
Robotics PortfolioRobotics Portfolio
Robotics Portfolio
 
GuideMaker Design Customization Guideline
GuideMaker Design Customization GuidelineGuideMaker Design Customization Guideline
GuideMaker Design Customization Guideline
 
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
How to Implement Basic Angular Routing and Nested Routing With Params in Angu...
 
Getting started with Verold and Three.js
Getting started with Verold and Three.jsGetting started with Verold and Three.js
Getting started with Verold and Three.js
 

More from Syiroy Uddin

Ukk 2016 - membuat toko online menggunakan virtuemart - ricky eka
Ukk 2016 - membuat toko online menggunakan virtuemart - ricky ekaUkk 2016 - membuat toko online menggunakan virtuemart - ricky eka
Ukk 2016 - membuat toko online menggunakan virtuemart - ricky ekaSyiroy Uddin
 
Ukk 2016 - pemrograman web menggunakan wordpress - ilham fiqih
Ukk 2016 - pemrograman web menggunakan wordpress - ilham fiqihUkk 2016 - pemrograman web menggunakan wordpress - ilham fiqih
Ukk 2016 - pemrograman web menggunakan wordpress - ilham fiqihSyiroy Uddin
 
Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...
Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...
Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...Syiroy Uddin
 
Ukk 2016 membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...
Ukk 2016   membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...Ukk 2016   membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...
Ukk 2016 membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...Syiroy Uddin
 
Ukk 2016 membuat game dengan aplikasi game maker (game arcade pac man) - m....
Ukk 2016   membuat game dengan aplikasi game maker (game arcade pac man) - m....Ukk 2016   membuat game dengan aplikasi game maker (game arcade pac man) - m....
Ukk 2016 membuat game dengan aplikasi game maker (game arcade pac man) - m....Syiroy Uddin
 
Ukk 2016 membuat game dengan aplikasi construct - bagas wiranto
Ukk 2016   membuat game dengan aplikasi construct - bagas wirantoUkk 2016   membuat game dengan aplikasi construct - bagas wiranto
Ukk 2016 membuat game dengan aplikasi construct - bagas wirantoSyiroy Uddin
 
Ukk 2016 redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agus
Ukk 2016   redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agusUkk 2016   redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agus
Ukk 2016 redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agusSyiroy Uddin
 
Ukk 2016 debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq m
Ukk 2016   debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq mUkk 2016   debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq m
Ukk 2016 debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq mSyiroy Uddin
 
Ukk 2016 setting cctv menggunakan aplikasi many cam - m.wildan alhamdani
Ukk 2016   setting cctv menggunakan aplikasi many cam - m.wildan alhamdaniUkk 2016   setting cctv menggunakan aplikasi many cam - m.wildan alhamdani
Ukk 2016 setting cctv menggunakan aplikasi many cam - m.wildan alhamdaniSyiroy Uddin
 
Ukk 2016 administrasi server ubuntu 14.04 lts - sahrul gunawan
Ukk 2016   administrasi server ubuntu 14.04 lts - sahrul gunawanUkk 2016   administrasi server ubuntu 14.04 lts - sahrul gunawan
Ukk 2016 administrasi server ubuntu 14.04 lts - sahrul gunawanSyiroy Uddin
 
2015 02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx ace
2015   02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx ace2015   02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx ace
2015 02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx aceSyiroy Uddin
 
2015-09. deka bagus - pemrograman web joomla
2015-09. deka bagus - pemrograman web joomla2015-09. deka bagus - pemrograman web joomla
2015-09. deka bagus - pemrograman web joomlaSyiroy Uddin
 
2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...
2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...
2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...Syiroy Uddin
 
2015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.04
2015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.042015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.04
2015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.04Syiroy Uddin
 
2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 lite
2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 lite2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 lite
2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 liteSyiroy Uddin
 
2015-20. m arif rochman hakim - administrasi server menggunakan cents os 6
2015-20. m arif rochman hakim - administrasi server menggunakan cents os 62015-20. m arif rochman hakim - administrasi server menggunakan cents os 6
2015-20. m arif rochman hakim - administrasi server menggunakan cents os 6Syiroy Uddin
 
2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...
2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...
2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...Syiroy Uddin
 
2015-18. ilham setia pambudi - pemrograman web e-learning berbasis php
2015-18. ilham setia pambudi - pemrograman web e-learning berbasis php2015-18. ilham setia pambudi - pemrograman web e-learning berbasis php
2015-18. ilham setia pambudi - pemrograman web e-learning berbasis phpSyiroy Uddin
 
2015 17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...
2015   17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...2015   17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...
2015 17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...Syiroy Uddin
 
2015-12. dian johan - cctv menggunakan webcam (many cam)
2015-12. dian johan - cctv menggunakan webcam (many cam)2015-12. dian johan - cctv menggunakan webcam (many cam)
2015-12. dian johan - cctv menggunakan webcam (many cam)Syiroy Uddin
 

More from Syiroy Uddin (20)

Ukk 2016 - membuat toko online menggunakan virtuemart - ricky eka
Ukk 2016 - membuat toko online menggunakan virtuemart - ricky ekaUkk 2016 - membuat toko online menggunakan virtuemart - ricky eka
Ukk 2016 - membuat toko online menggunakan virtuemart - ricky eka
 
Ukk 2016 - pemrograman web menggunakan wordpress - ilham fiqih
Ukk 2016 - pemrograman web menggunakan wordpress - ilham fiqihUkk 2016 - pemrograman web menggunakan wordpress - ilham fiqih
Ukk 2016 - pemrograman web menggunakan wordpress - ilham fiqih
 
Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...
Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...
Ukk 2016 - membuat game dengan rpg maker (fight for freedom) - sastra g. dan ...
 
Ukk 2016 membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...
Ukk 2016   membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...Ukk 2016   membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...
Ukk 2016 membuat game dengan rpg maker (element of crystal) - ivan sanjaya ...
 
Ukk 2016 membuat game dengan aplikasi game maker (game arcade pac man) - m....
Ukk 2016   membuat game dengan aplikasi game maker (game arcade pac man) - m....Ukk 2016   membuat game dengan aplikasi game maker (game arcade pac man) - m....
Ukk 2016 membuat game dengan aplikasi game maker (game arcade pac man) - m....
 
Ukk 2016 membuat game dengan aplikasi construct - bagas wiranto
Ukk 2016   membuat game dengan aplikasi construct - bagas wirantoUkk 2016   membuat game dengan aplikasi construct - bagas wiranto
Ukk 2016 membuat game dengan aplikasi construct - bagas wiranto
 
Ukk 2016 redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agus
Ukk 2016   redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agusUkk 2016   redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agus
Ukk 2016 redhat 9.0 (instalasi, settting ip, dhcp dan dns) - bayu agus
 
Ukk 2016 debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq m
Ukk 2016   debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq mUkk 2016   debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq m
Ukk 2016 debian 7 (instalasi,sett ip,dhcp,dns) - m.asyiq m
 
Ukk 2016 setting cctv menggunakan aplikasi many cam - m.wildan alhamdani
Ukk 2016   setting cctv menggunakan aplikasi many cam - m.wildan alhamdaniUkk 2016   setting cctv menggunakan aplikasi many cam - m.wildan alhamdani
Ukk 2016 setting cctv menggunakan aplikasi many cam - m.wildan alhamdani
 
Ukk 2016 administrasi server ubuntu 14.04 lts - sahrul gunawan
Ukk 2016   administrasi server ubuntu 14.04 lts - sahrul gunawanUkk 2016   administrasi server ubuntu 14.04 lts - sahrul gunawan
Ukk 2016 administrasi server ubuntu 14.04 lts - sahrul gunawan
 
2015 02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx ace
2015   02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx ace2015   02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx ace
2015 02,32 rizal, jangga - pemrograman game menggunakan rpg maker vx ace
 
2015-09. deka bagus - pemrograman web joomla
2015-09. deka bagus - pemrograman web joomla2015-09. deka bagus - pemrograman web joomla
2015-09. deka bagus - pemrograman web joomla
 
2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...
2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...
2015-31. sodo rizky p ubuntu 12.04 - rematering linux ubuntu menggunakan rema...
 
2015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.04
2015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.042015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.04
2015-25. m. ainur rofiq - remote dekstop pada ubuntu 12.04
 
2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 lite
2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 lite2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 lite
2015-24. mohammad abdul aziz - reamastering windows 7 menggunakan rt7 lite
 
2015-20. m arif rochman hakim - administrasi server menggunakan cents os 6
2015-20. m arif rochman hakim - administrasi server menggunakan cents os 62015-20. m arif rochman hakim - administrasi server menggunakan cents os 6
2015-20. m arif rochman hakim - administrasi server menggunakan cents os 6
 
2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...
2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...
2015-19. isrofi wahyu k. - management menggunakan htb & monitoring jaringan m...
 
2015-18. ilham setia pambudi - pemrograman web e-learning berbasis php
2015-18. ilham setia pambudi - pemrograman web e-learning berbasis php2015-18. ilham setia pambudi - pemrograman web e-learning berbasis php
2015-18. ilham setia pambudi - pemrograman web e-learning berbasis php
 
2015 17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...
2015   17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...2015   17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...
2015 17 & 14 hendy & fachrur rozi - Pemrograman Game Android ( save satelli...
 
2015-12. dian johan - cctv menggunakan webcam (many cam)
2015-12. dian johan - cctv menggunakan webcam (many cam)2015-12. dian johan - cctv menggunakan webcam (many cam)
2015-12. dian johan - cctv menggunakan webcam (many cam)
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
CĂłdigo Creativo y Arte de Software | Unidad 1
CĂłdigo Creativo y Arte de Software | Unidad 1CĂłdigo Creativo y Arte de Software | Unidad 1
CĂłdigo Creativo y Arte de Software | Unidad 1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 

2013-48. Game Progamming

  • 1. Game progamming, adalah pengembangan perangkat lunak video game. Yang melibatkan programmer game profesional, banyak siswa dapatprofesional, banyak siswa dapat memprogram game sebagai hobi. Dan juga sebagai latihan untuk belajar bahasa pemrograman atau sistem operasi
  • 2. MULTIPLAYER RACING GAME DENGAN UNITY Unity merupakan sebuah game engine yang mampu membangun game baik 3D maupun 2D dimana game tersebut dapat di Compile dan dijalankan pada beberapa platform yang berbeda.dijalankan pada beberapa platform yang berbeda. Unity hampir memiliki semua fitur yang dibutuhkan oleh seorang game developer dalam pembuatan game.
  • 3.
  • 4. Pada konsep game ini saya ingin membuat game racing yang berbasis 3D yang terdapat fitur multiplayer yang nantinya dapat dimainkan oleh 2 orang atau lebihdimainkan oleh 2 orang atau lebih
  • 5. Model yang di terapkan adalah sebuah mobil 3d yang dapat melaju di datas circuit .dalam perancangan model yang digunakan berdasarkan dari unitydigunakan berdasarkan dari unity assets yang kemudian akan dilakukan perubahan bentuk warna teksture dan lain2
  • 6. • Membuat Layout Game • Scripting • Pembuatan GUI• Pembuatan GUI
  • 7. Game layout ini adalah dimana sebuah daerah pegunungan dan dataran tinggi yang terletak dekat dengan pesisir pantai dimana terdapat sebuah circuit balapan di daerah itu. yang dapat memberikan suasana natural pada area balapan Layout game yang digunakan berasal dari unity assets . Unity assets berisi Karakter model, alat peraga, bahan dan tekstur, alat lanscape lukisan, alat permainan menciptakan, efek audio dan musik, pemrograman visual, script dan ekstensi . Unity assets dapat di download pada website resmi nya http://unity3d.com/asset-store/
  • 8.
  • 9. Jika sudah mencoba ,buka scene bernama Download project dalam bentuk zip dari http://unity3d.com/support/resources/fi les/CarTutorial.zip Lalu pertama dengan membuka ‘CompleteScene’. Di scene ini sudah terdapat desain mobil jadi anda bisa mencoba untuk menekan tombol “play”ini akan menunjukan hasil dari proses pembuatan . Assembling the Car Jika sudah mencoba ,buka scene bernama ’TheTrack’. Scene ini berisi apa yang dibutuhkan untuk balapan kecuali bagian paling penting mobil , kemudian drag mobil kedalam scene didalam tampilan project yang terdapat pada Models/Car/catamount.
  • 10. Adding Collision • Click on the Collider_Bottom game object • Go to the Component/Physics Menu and click the MeshCollider to add one to the game object. • Click the Material dropdown-selector on the newly added MeshCollider component and select the Car physics material. • Check the two boxes ‘Smooth Sphere Collisions’ and ‘Convex’Collisions’ and ‘Convex’ • Since the colliders are going to be invisible, go ahead and remove the MeshRenderer and Mesh Filter Components from the GameObject (Click the small cog wheel to the right of the Components and select ‘Remove Component’. • Do the same as above for the Collider_Top game object.
  • 11. Shadow settings for the car model Body: Cast Shadows enabled. Receive Shadows disabled. Body Interior: Cast Shadows enabled. Receive Shadows disabled. Car Windows: Cast and Receive Shadows disabled DiscBrakes: Cast and Receive Shadows disabled Kemudian mengatur settingan shadow dari desain mobil DiscBrakes: Cast and Receive Shadows disabled Wheels: Cast Shadows enabled. Receive shadows disabled.
  • 12. Adding the Car’s Components go to the Components menu and select Physics/RigidBody The car obviously weighs more than just one kilo, so start by changing the Rigidbody’s mass to something more realistic like 1500. Next we have the drag and angularDrag properties, which are forces that slow downNext we have the drag and angularDrag properties, which are forces that slow down the Rigidbody’s speed and rotation. We will control the drag of the car through scripting, so just set the drag and angularDrag properties to 0. Locate the Car.js script in the folder ‘scripts/JavaScripts’ and drag it onto the Car GameObject. This script is the “engine” of the car,
  • 13. First of all, the car script needs to know about the wheels that the car has. In the Inspector you will see the Front Wheels and the Rear Wheels, and notice that both of them can be expanded by clicking on the small arrow to the left of the names. • Set the size of the Front and Rear Wheels to 2, making room for two front wheels and two rear wheels. • Now expand the WheelFL, WheelFR, WheelRL and WheelRR in the inspector. You will see• Now expand the WheelFL, WheelFR, WheelRL and WheelRR in the inspector. You will see that they each have a Disc Brake a child, and that each disc brake has a wheel as a child. For now you should be content with knowing that the disc brake and wheel game objects are the graphical representation of the wheel. • Drag the DiscBrakeFL and DiscBrakeFR to the two open slots in the Front Wheels under the Car script and the DiscBrakeRL and Disk Brakerr to the slots under the Rear Wheels. • You might ask - why are the DiscBrakes the wheels? And the explanation is simple: The disc brakes are parent Game Objects to the tire graphics, so setting the discs as wheels will include the tires.
  • 14. Adding a blob shadow • In the Hierarchy, create an empty GameObject and drag it to the Car to make it a child of it. • Name it ‘Blob shadow projector’ • Add a Projector component to the Blob shadow projector (Component->Renderer- >Projector) • Set the projectors Near Clip Plane to 0.1, its Far Clip Plane to 50, its Field of View to 30. • Assign the Blob_shadow material to its Material slot.Material slot. • In the ‘Ignore Layers’ select ‘Everything’ and then deselect the ‘Road’ layer, thus making the projector only cast the blob shadow on the road. • Add the BlobShadowController.js script (in the Scripts/CSharpScripts folder in the Project view)
  • 15. Skidmarks To enhance the effect of the wheels sliding on the road and make it a bit more believable, we are going to add some skidmarks to the surface we’re drivingthe surface we’re driving on when the car is sliding. We have created a prefab for this that you can just drag into the scene: • Drag the Skidmarks prefab from Prefabs->VFX->Skidmarks into the scene.
  • 17. • Create a new GameObject and drag it to the Car game object. • Rename it to CenterOfMass • Reset the CenterOfMass’s Transform (click the little cog wheel to the right of the Transform in the Inspector and select ‘Reset’. This will give it the same position as its parent, the car. • Adjust its position to somewhere you like. Either do it by dragging, or type in the position. A good position for this car’s center of mass could be (0, 0.1, 0.65). • In the Inspector assign the CenterOfMass to the slot for it in the Car script• In the Inspector assign the CenterOfMass to the slot for it in the Car script Component.
  • 18. If you have followed along and assembled your own version of the car, you now have the knowledge needed to implement it in your own projects. An easy way to transfer it across projects is to make a Unity Package from the needed Prefabs. First lets turn the car we made into a Prefab so it can be reused without doing the assembling and Exporting the car as a package tweaking: • In the Project view click ‘Create’ and select ‘Prefab’. You will• In the Project view click ‘Create’ and select ‘Prefab’. You will get an empty Prefab in the project view named ‘new prefab’. • Rename the Prefab to ‘Race Car’ (a nice palindrome) or any other name to your liking. • Drag the Car GameObject from the Hierarchy view and onto the Prefab.