Skip to content

This is a tutorial for Unity to create an position tracker to then use it for a heatmap

License

Notifications You must be signed in to change notification settings

EtienneXYZ/Position_Tracker_Heat_Map_Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Position_Tracker_Heat_Map_Unity

This is a tutorial for Unity to create an position tracker to then use it for a heatmap.

**Step 1: ** Screenshot 2023-09-05 172209 Attach the PlayerTracker script to your player's VR camera or controller. This script will log the player's position, rotation, and room design number every second and store it in a CSV file in the "Assets" folder of your project. Note: You do not need do not set any RoomDesignNumber level the " 0". Add a capsule collider Add a Rigidbody: "use gravity "and "Is kinematic" must be checked

**Step 2: ** Screenshot 2023-09-05 172613

Attach the RoomTrigger script to an empty object, call it for example "RoomTrigger1", don't forget to put the room design as "1" in the inspector. Add a box collider and "is trigger" must be selected. Scale the empty object to the size of your space exploration.

**Step 3: **

Screenshot 2023-09-05 172850

Repeat the previous procedure for the next design variations: "RoomTrigger2", "RoomTrigger3"

**Nota: ** If we want to do this for several floors the then need to create another empty for RoomTriggerFloor1" and rename our previous one "RoomTriggerfloor0"

In case you are having difficulties: check that the tag is corresponding to the one called in the script "RoomTrigger", here layer is set to Main camera, as our default tag is "main camera" and it works.

**Step 4: ** The file "PlayerData" is just an example of the output you get with thanks to the player tracker c# script

Thanks for reading this tutorial

About

This is a tutorial for Unity to create an position tracker to then use it for a heatmap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages