Expand description
World collision queries for physics simulation.
Structsยง
- Block
Collision ๐Search Bounds - Collision
Shape ๐ - World
Collision Provider - Implements
CollisionWorldfor the Steel World struct.
Enumsยง
- Collision
Cursor ๐Type
Constantsยง
Traitsยง
- Collision
World - Trait for querying collision shapes from the world.
Functionsยง
- block_
pos_ ๐center_ distance_ sq - bottom_
center ๐ - closest_
free_ ๐position - closest_
point_ ๐to_ boxes - has_
block_ collision - Returns whether an entity box intersects any block collision shape.
- has_
collision - Returns whether an entity box intersects any entity or block collision shape.
- is_
colliding_ with_ new_ shapes - Returns whether
new_aabbcollides with shapes thatold_aabbdid not. - push_
non_ ๐empty_ aabb - should_
query_ ๐collision_ shape - subtract_
aabb ๐ - translate_
collision_ ๐shape - union_
bounds ๐ - vanilla_
block_ ๐pos_ less