Components
- Manual: Components
- GameObjects act as containers for Components that implement various functionalities
- GameObject's components and their settings are listed in the Inspector window
Some important components
- Transform
- Manual: Transform
- position, rotation, scale
- parenting information
- included in every GameObject
Interacting with other GameObjects
- RigidBody
- Manual: RigidBody
- for interacting with the physics engine
- can receive forces and torque
- Collider
- Manual: BoxCollider
- enables collision with other GameObjects
- there are different shapes and sizes
- CapsuleCollider(2D), BoxCollider(2D), PolygonCollider2D...
isTrigger
- -> Collider is ignored by the physics engine, but can trigger events
Drawing the GameObject
- MeshFilter
- The mesh, or the 3d geometry of a GameObject
- Renderer
- Manual: MeshRenderer
- The component for drawing the GameObject on screen
- MeshRenderer, SpriteRenderer, LineRenderer, TrailRenderer...
- Material