Devlogs
v2.4.0 Minor Release
Shape EngineA downloadable Game Engine Demo for Windows and Linux
Posted December 09, 2024 by Dave Green
#minor release
Transform2D Enhancements:
- New Functions:
UpdateTransform
: Updates the transform.
GetChildTransform
: Retrieves the transform of a child object.
Collider Enhancements:
- Uses UpdateTransform Function: The Collider now leverages the
UpdateTransform
function.
- Cleanup: General cleanup for better performance and maintainability.
Function Changes in Shapes:
- ApplyTransform/ApplyTransformCopy:
- Changed to
ApplyOffset/ApplyOffsetCopy
across all shapes.
New Shape Class:
- A new
Shape
class that inherits from IShape
.
Collider Inheritance:
- The
Collider
now inherits from the Shape
class instead of IShape
.
ShapeContainer System:
- Hierarchy System: Parent/Child hierarchy for shapes.
- A
ShapeContainer
can have a parent and multiple children.
- Children are updated based on the parent transform and the child offsets.
New Shape Classes:
- CircleShape
- TriangleShape
- SegmentShape
- RectShape
- QuadShape
- PolyShape
- PolyLineShape
- All these classes inherit from
ShapeContainer
.