User Tools

Site Tools


public:t-vien-15-3:lab2_collect_them_all

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:t-vien-15-3:lab2_collect_them_all [2015/08/27 16:58] hannespublic:t-vien-15-3:lab2_collect_them_all [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 15: Line 15:
 ===== Procedure ===== ===== Procedure =====
  
-  - **Basic Scene** In Unity, start with an empty scene. Add a floor (as a ''Plane'' game object) and replace the ''Main Camera'' with a ''FPSController'' from the ''Characters'' Assets Package. Make sure you can walk around your plane. Feel free to embellish this scene with other visuals (e.g. a different skybox). Save your scene in your "VIEN/Scenes" folder.+  - **Basic Scene** In Unity, start with an empty scene. Add a floor (as a ''Plane'' game object) and replace the ''Main Camera'' with a ''FPSController'' from the ''Characters'' Assets Package. Make sure you can walk around your plane. Feel free to embellish this scene with other visuals (e.g. remove the skybox and add fog in **Window->Lighting**, sky color can be changed in the ''Camera'' component of the ''FPSController->FirstPersonCharacter'' game object). Save your scene in your "VIEN/Scenes" folder.
   - **Create a Textured Object** In Blender, create a new object from scratch with some texturing and save it directly into your Unity project folder under "Assets/VIEN/Props" (the folders shown in the Unity **Project** panel are all in the same folders on the hard disk). For this step follow the instructions on the [[public:t-vien-15-1:blendertexturing|Blender Model Export and UV Texturing]]   - **Create a Textured Object** In Blender, create a new object from scratch with some texturing and save it directly into your Unity project folder under "Assets/VIEN/Props" (the folders shown in the Unity **Project** panel are all in the same folders on the hard disk). For this step follow the instructions on the [[public:t-vien-15-1:blendertexturing|Blender Model Export and UV Texturing]]
   - **Make Object Instance Sense Collision** Once you have instanced your new textured object as a **GameObject** in the scene (you can either drag it into the **Hierarchy** panel or drop it onto the plane in the **Scene** view), click on it in the **Hierarchy** view and in the **Inspector** panel click on **Add Component** and use the search box to search for a ''Sphere Collider''. Add this collider component to your game object. In the ''Sphere Collider'' check the ''Is Trigger'' check box. You have now created an invisible sphere around your object, which generates a trigger event if something collides with it. You can control the radius of this sphere directly from the ''Radius'' property in the **Inspector** panel.   - **Make Object Instance Sense Collision** Once you have instanced your new textured object as a **GameObject** in the scene (you can either drag it into the **Hierarchy** panel or drop it onto the plane in the **Scene** view), click on it in the **Hierarchy** view and in the **Inspector** panel click on **Add Component** and use the search box to search for a ''Sphere Collider''. Add this collider component to your game object. In the ''Sphere Collider'' check the ''Is Trigger'' check box. You have now created an invisible sphere around your object, which generates a trigger event if something collides with it. You can control the radius of this sphere directly from the ''Radius'' property in the **Inspector** panel.
/var/www/cadia.ru.is/wiki/data/attic/public/t-vien-15-3/lab2_collect_them_all.1440694698.txt.gz · Last modified: 2024/04/29 13:33 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki