Starting basic physics, nothing fancy
This commit is contained in:
@ -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