Skip to main content

Module collision

Module collision 

Source
Expand description

World collision queries for physics simulation.

Structsยง

BlockCollisionSearchBounds ๐Ÿ”’
CollisionShape ๐Ÿ”’
WorldCollisionProvider
Implements CollisionWorld for the Steel World struct.

Enumsยง

CollisionCursorType ๐Ÿ”’

Constantsยง

BLOCK_COLLISION_EPSILON ๐Ÿ”’
ENTITY_COLLISION_EPSILON ๐Ÿ”’
MAX_PREFETCHED_COLLISION_BLOCKS ๐Ÿ”’

Traitsยง

CollisionWorld
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_aabb collides with shapes that old_aabb did not.
push_non_empty_aabb ๐Ÿ”’
should_query_collision_shape ๐Ÿ”’
subtract_aabb ๐Ÿ”’
translate_collision_shape ๐Ÿ”’
union_bounds ๐Ÿ”’
vanilla_block_pos_less ๐Ÿ”’

Type Aliasesยง

BlockCollisionCandidate ๐Ÿ”’