mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add more reason to physics simulation substeps
This commit is contained in:
parent
794ce07bd5
commit
4b4f2439c0
5 changed files with 119 additions and 114 deletions
|
|
@ -2,10 +2,13 @@
|
|||
|
||||
#include <stdexcept>
|
||||
|
||||
Hitbox::Hitbox(BodyType type, glm::vec3 position, glm::vec3 halfsize)
|
||||
: type(type),
|
||||
position(position),
|
||||
halfsize(halfsize),
|
||||
velocity(0.0f,0.0f,0.0f),
|
||||
prevPosition(position)
|
||||
{}
|
||||
Hitbox::Hitbox(
|
||||
entityid_t entity, BodyType type, glm::vec3 position, glm::vec3 halfsize
|
||||
)
|
||||
: entity(entity),
|
||||
type(type),
|
||||
position(position),
|
||||
halfsize(halfsize),
|
||||
velocity(0.0f, 0.0f, 0.0f),
|
||||
prevPosition(position) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue