Posted December 15, 2024 by Dave Green
#minor release
This release addresses various fixes and improvements that were missed in the 3.0 release. Despite introducing some breaking changes, I decided to classify this as a minor release rather than version 4.0, as all the breaking changes pertain to the same systems as the 3.0 release.
Previously, the FirstContact
was only reported for Colliders
and not for CollisionObjects
. The system has now been split into two separate systems: one for Collider
pairs and one for CollisionObject
pairs.
FirstContact
between two CollisionObjects
is reported once any Collider
of one contacts any Collider
of the other CollisionObject
.
ContactEnded()
function for the CollisionObject
is called once all contacts between all of the Colliders
have ended.
FirstContact
between two Colliders
is reported the first time they contact (no contact in the previous frame).
ColliderContactEnded()
function is called once the contact ends (contact in the previous frame but no contact in the current frame).
CollisionObject
moved to the CollisionSystem
namespace.
ContactEndedInformation
class removed.
Contact
class removed.
ContactEnded(CollisionObject other)
function parameters changed.
ColliderContactEnded(Collider self, Collider other)
function parameters changed.
CollisionInformation
now includes a FirstContact
member, reported only for the two involved CollisionObjects, separate from any FirstContact reporting between Colliders.
CollisionInformation
, including new functions.
CollisionPoints
.
CollisionPoint
.
CollisionPoints
added.
GetAverageCollisionPoint()
renamed to GetCombinedCollisionPoint()
in multiple classes.
CollisionObject.ResolveCollision()
is now called for each generated CollisionInformation
instead of receiving a list of CollisionInformation
.