struct
Eagle::Physics2D::Manifold
- Eagle::Physics2D::Manifold
- Struct
- Value
- Object
Overview
The result of a collision test: which way to separate, how deep the overlap is, and where the shapes touch.
Defined in:
eagle/physics/collision2d.crConstructors
-
.new(normal : Eagle::Vec2, penetration : Float32, contacts : Array(Eagle::Vec2))
Creates a manifold.
Instance Method Summary
-
#contacts : Array(Vec2)
Contact points in world space.
-
#normal : Vec2
Unit normal pointing from shape A to shape B.
-
#penetration : Float32
Overlap depth along the normal.
Constructor Detail
Creates a manifold.