Starting basic physics, nothing fancy
This commit is contained in:
1 parent
4bfec16ba7
commit
9606b4dc9b
32 files changed
+779
-286
No files matched your search
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user