This is a tutorial for Unity to create an position tracker to then use it for a heatmap.
**Step 1: ** 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
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: **
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