2018_04_03_Week_ToDoToday - EloiStree/HelloVirtualReality GitHub Wiki
Que faison-nous cette semaine
Punching to the break
Objectifs
Apprendre à gérer les mains, le corps et la tête d'un joueur en VR d'un manière ludique et surtout exutoire ;)
Day 3
- Merge Cube VR
- Virutal reality & Augmented reality merge with Vuforia
- Finish the two game of the fire truck jam
- Publish the basketball game of Stephane
Day 2
Objectifs:
- Rotation
- Quaternion Utility
- Classic
- Transform.Rotate()
- Transform.forward
- Quaternion * DirectionVector
- Transform Utility
- Quaternion != Commutatif
- Cross product Wiki Unity
- Dot product Wiki Unity
Need
- Tool to draw point positions throw time
- Tool to draw rotation Cartesian coordinate system
- Gizmo
- Script from rotation A to rotation B
Added
- Vector3.ProjectOnPlane()
Question
- After work: Blender ?
Day 1
Objectifs:
Jouer avec les détections physiques
- Physics.RayCast()
- Physics.RayCastAll()
- Physics.SphereCast()
- Physics.BoxCast()
- GraphicsRaycaster
- Physics.OverlapSphere()
- LayerMask
- IgnoreCollision & Layer
Utiliser les coroutines
Exemple
https://github.com/JamsCenter/2017_04_03_PunchingToTheBreak
Que faisons-nous aujourd'hui
Objectifs
Exemple: Artery Battle VR
Manuals: NetworkTransform- Shoot Bullet in UNet - Network.Spawning()
Exemple
Doc: Manual
Text Tutorial
Google
[SyncVar]
public int syncVar; //Change on server, change everywhere
[SyncVar (hook:"OnVarChange")]
public int syncVar; //Change on server, change everywhere
public void OnVarChange(int newVar){/Methode executed at any network change of the var/}
[ClientRpc]
public void RpcMethodeName(){/Excuted on client from server/}
[Command]
void CmdFire() {/Excuted on client from client/}
NetworkServer.Spawn(bullet); // Spawn a prefab defined for network at start
Exercice
- Créez un scène Unity en vue FPS avec UNET (Un simple modèle qui bouge)
- Ajouter un cube qui instancie des balles. Attacher le cube à la caméra du joueur
- Créer un script qui reconnait si vous êtes sur Oculus, Gear VR ou sans casque
- Créer un comportement de déplacement différent en fonction du casque
- créer un script qui synchronise la position de la main du joueurs à travers le réseaux
- Créer un scène de Lobby pour jouer à travers le web
To Do
Ask for a Oculus Go to make an application with it: https://developer.oculus.com/oculus-start/