59 f32 stepheight, f32 dtime,
62 bool collide_with_objects=
true);
71 bool collide_with_objects =
true);
79 v3f speed, f32 *dtime);
84 const std::vector<aabb3f> &staticboxes,
86 f32 y_increase, f32 d);
Definition activeobject.h:141
Definition environment.h:34
CollisionAxis
Definition collision.h:22
@ COLLISION_AXIS_X
Definition collision.h:24
@ COLLISION_AXIS_Y
Definition collision.h:25
@ COLLISION_AXIS_Z
Definition collision.h:26
@ COLLISION_AXIS_NONE
Definition collision.h:23
bool g_collision_problems_encountered
Status if any problems were ever encountered during collision detection.
Definition collision.cpp:24
bool collision_check_intersection(Environment *env, IGameDef *gamedef, const aabb3f &box_0, const v3f &pos_f, ActiveObject *self=nullptr, bool collide_with_objects=true)
A simpler version of "collisionMoveSimple" that only checks whether a collision occurs at the given p...
Definition collision.cpp:587
collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef, const aabb3f &box_0, f32 stepheight, f32 dtime, v3f *pos_f, v3f *speed_f, v3f accel_f, ActiveObject *self=NULL, bool collide_with_objects=true)
Definition collision.cpp:325
bool wouldCollideWithCeiling(const std::vector< aabb3f > &staticboxes, const aabb3f &movingbox, f32 y_increase, f32 d)
CollisionAxis axisAlignedCollision(const aabb3f &staticbox, const aabb3f &movingbox, v3f speed, f32 *dtime)
Definition collision.cpp:81
CollisionType
Definition collision.h:16
@ COLLISION_OBJECT
Definition collision.h:18
@ COLLISION_NODE
Definition collision.h:17
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition collision.h:30
CollisionAxis axis
Definition collision.h:34
CollisionType type
Definition collision.h:33
v3f old_speed
Definition collision.h:38
v3s16 node_p
Definition collision.h:35
v3f new_pos
Definition collision.h:37
v3f new_speed
Definition collision.h:39
Definition collision.h:43
std::vector< CollisionInfo > collisions
Definition collision.h:49
bool collides
Definition collision.h:46
collisionMoveResult()=default
bool touching_ground
Definition collision.h:47
bool standing_on_object
Definition collision.h:48