Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Clarification on terms like Gravity, Speed, NormalClip, etc

A topic by Dock created Jun 30, 2018 Views: 103 Replies: 2
Viewing posts 1 to 3

Been really loving Sinput this last month. I've generally hated my experience with control addons and avoided them until later in the project, but Sinput makes everything much easier. Thank-you!

I raw into some trouble with GetVector because I couldn't find how to control the smoothing of the input.  Would it be possible in future to explain variables like this?  

As for NormalClip, I was able to understand its meaning when I searched through the sourcecode, but it wasn't entirely obvious at first. 

Developer

Most of the terms for smart controls are equivalent to input axis settings, for clarification:

  • Deadzone - values of smaller magnitude aren't returned
  • Gravity - how quickly the value moves to 0
  • Speed - how quickly the value moves towards it's raw input value
  • Snap - if the raw input value is positive and the current value is negative, snaps to zero (and vice-versa)
  • Scale - any returned value gets multiplied by this
  • Invert - if true returned values are multiplied by -1

Sounds like you figured it out but for anyone reading this later; normalClip means a GetVector() call won't return a vector with a magnitude of more than 1 - this is just so you don't get issues where players will travel faster if they press up and right on a keyboard (or whatever).

The GetVector behaviour could do with some work to improve it in this regard I think, maybe 2-dimensional SmartControls?  Anyway if there's any other terms you think need explanation let me know and I'll add them to the documentation or something, I'm pretty blind to what isn't apparent since I often pick terms that make sense to me, and they don't make sense to everyone else...

Thank you for this!