abstract class
Eagle::Physics2D::Shape
- Eagle::Physics2D::Shape
- Reference
- Object
Overview
A collision shape in a body's local space. Eagle has circles and convex polygons; build concave objects from several convex shapes on one body.
Direct Known Subclasses
Defined in:
eagle/physics/shapes2d.crInstance Method Summary
-
#aabb : Rect
Bounds in world space.
-
#area : Float32
Area in square pixels, used for mass.
-
#inertia_factor : Float32
Moment of inertia per unit mass about the shape's center.
-
#local_aabb : Rect
Bounds in the body's local space.
-
#offset : Vec2
Offset from the body's origin.
-
#offset=(offset : Vec2)
Offset from the body's origin.
-
#transformed(t : Transform2D) : Shape
A world-space copy of the shape.