Starting basic physics, nothing fancy

This commit is contained in:
2023-02-20 00:29:28 -08:00
parent 4bfec16ba7
commit 9606b4dc9b
32 changed files with 779 additions and 286 deletions

View File

@ -109,6 +109,17 @@ namespace Dawn {
return glm::vec2(getAxis(negativeX, positiveX), getAxis(negativeY, positiveY));
}
/**
* Returns the 2D Axis for the given binds.
*
* @param x X Axis bind.
* @param y Y Axis bind.
* @return 2D vector of the two given input binds.
*/
glm::vec2 getAxis2D(inputbind_t x, inputbind_t y) {
return glm::vec2(getValue(x), getValue(y));
}
/**
* Returns true if the given bind is currently being pressed (a non-zero
* value).