Tracking Rigidbody Velocity in Asteroids VR @WorldOfZeroDevelopment
Tracking Rigidbody Velocity in Asteroids VR  @WorldOfZeroDevelopment
Uploaded July 2019 | Updated November 2026, 2 hours ago
In order to better track and debug in Asteroids VR I'd like to be able to track how fast the player is moving at any point in time. To do this we're going to add a simple tracking UI that displays our current velocity in meters per second and kilometers per hour using a canvas with a single Text element in it.

In order to grab the `velocity` we can just pull out the magnitude of the Rigidbody's `velocity`. Then to set this up we can calculate the our mps and kph values and assign the results to our Text object.

Check out more videos on the development of Asteroids VR: youtube.com/playlist?list=PLEwYhelKHmig7HVi7_WahwXRWPycEJ5xC

Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Tracking Rigidbody Velocity in Asteroids VRIntroducing Testing into our PlatformerThe Search for Objects - Unity Observer - Part 1Using Your Terminals Directory Stack to Work With Multiple DirectoriesUsing Polar Coordinates in Unity Shader GraphsLets Explore Implicit Usings in C# 10Building worldofzero.com - Improved Video DescriptionsRotation Math Tricks - Using Unitys Quaternion OperatorsMath in the Unity Inspector - Quick TipStarting to Build a Spigot Minecraft Mod - Building MC-Clone - Part 1Building a Cloud Game w/ @MicrosoftReactor -  Day 1Learning Async Unity Scene Loading
World of Zero |

Tracking Rigidbody Velocity in Asteroids VR

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER