Game Development Reference
In-Depth Information
to give the effect of afterburners. A Physics component gives the game
object real-world physical properties so it can be collided with and
affected by gravity and other physics effects. An Audio component
adds sound or sound effects to a game object. For example, if the
game object were a car, the noise of a car engine could be added.
A Rendering component adds special effects to a game object such
as emitting light. Miscellaneous components include a variety of
effects for the game objects that do not fit within other categories.
In Figure 1.18 , the Wind Zone component is shown as a type of
miscellaneous component. In brief, this causes the game object to
become a source of wind for interaction within the physics system.
Finally, Scripts are components that contain programming code to alter
the behavior of a game object. Scripts can be used for a large variety
of purposes and are fundamental to developing game mechanics and
tying an entire game together.
In Unity, scripts added to game objects can be written in JavaScript
or C#. This topic uses JavaScript, as it requires less background
knowledge in programming to get started and the syntax is more
forgiving than C#.
Physics
Particles
Audio
Mesh
Render
Game
Object
Component
Misc.
Scripts
Game
Object
Fig 1.18 Components that can be added to a game object in Unity.
Search Nedrilad ::




Custom Search