Function bevy_retrograde_physics::create_convex_collider [−][src]
pub fn create_convex_collider(
image: DynamicImage,
tesselator_config: &TesselatedColliderConfig
) -> Option<CollisionShape>
Expand description
Create a convex hull CollisionShape
from a sprite image based on it’s alpha channel
Returns None
if a mesh for the given image could not be generated