Closed sebcrozet closed 3 years ago
Shape::as_typed_shape
TypedShape
AABB::vertices
AABB::split_at_center
AABB::to_trimesh
Shape::as_serialize
Changelog
Added
Shape::as_typed_shape
method to convert the shape trait-object to an enum.TypedShape
enum with variants containing references to concrete shapes (except for user-defined custom shapes).AABB::vertices
to get an array containing its vertices.AABB::split_at_center
to split an AABB into 4 (in 2D) or 8 (in 3D) parts.AABB::to_trimesh
to compute the mesh representation of an AABB.Removed
Shape::as_serialize
method.Fixed