Sanity check: What units?

Started by Oz 6 posts 169 views

Reply on sbox.game
  1. #1
    Oz 100
    It's probably on my end, but I'm working with a lot of vehicle dynamics formulas and they're pretty much all in metric system. I don't mind working in other units, but just as a sanity check, can someone tell me what unit certain functions return. 

    The main one I'm curious about is: GetVelocityAtPoint. Does it return it in inches?
  2. #2
    AleD 875
     Units in Id Software and  Valve engines are referred to as quake units (qu) or hammer units (hu), and are usually loosely analogous to roughly 1 inch, 0.75 inches, or 2-3 centimeters (see Dimensions). 
  3. #3
    garry Facepunch 2,270
    It's all inches at the moment. We do need to have a serious discussion about it, and I wish we made the change earlier.
  4. #4
    Oz Started this 100
    @AleD yeah I saw those but I wanted a sanity check since S&Box has changed the physics engine ( from what I understand ).

    @garry thanks, yeah I can imagine it might be a pain to change. Good luck!
  5. #5
    Unknown
  6. edited May 2026 #6
    Raubhamster 95
    What about Rigidbody.Mass? Is it kg, pound, something else? 🤔
    And NavMeshAgent.MaxSpeed is inch/per second?

    Working with other units than m or cm really confuses me. 🤯