Skip to content

Latest commit

 

History

History
431 lines (324 loc) · 26.8 KB

RELEASE-NOTES.md

File metadata and controls

431 lines (324 loc) · 26.8 KB

v3.4.1 - In Development

New Features:

  • #102 Added guards on Joint setX methods to ensure that the joined bodies are not awakened unless necessary
  • #103 Updated the FrictionJoint default max force/torque to non-zero values to better illustrate it's use to new users

Bug Fixes:

  • #106 PulleyJoint no longer allows negative length
  • #100 Fixed unrealistic falling of bodies under gravity when bound together by a MotorJoint

Deprecated:

Breaking Changes:

  • #71 Removed all references to UUID in the project as promised in the previous version's deprecation.

Other:

  • #98 Replaced release-notes.txt with RELEASE-NOTES.md for better formatting and maintenance.
  • #101 Added unit documentation for damping values on the Body class

v3.4.0 - January 10th, 2020

Milestone | Tag | Maven Release | GitHub Release

New Features:

  • Arithmetic optimizations @mtsamis
  • Small performance enhancement in the Island class @mtsamis
  • Memory footprint improvements @mtsamis
  • AABB unpack and performance enhancements @mtsamis
  • New LazyAABBTree broadphase detector @mtsamis
  • New BruteForceBroadphase detector @mtsamis
  • Geometry optimizations @mtsamis
  • Dynamics optimizations @mtsamis
  • New Rotation class for more efficient rotations @mtsamis
  • New divide, quotient, and inverseRotate methods for Vector2 @mtsamis
  • New RobustGeometry class for dealing with error in floating point computations (specifically for geometry at the moment) @mtsamis

Bug Fixes:

  • #45 Bug fix for HalfEllipse.getRadius(Vector2) when the half width < half height and the given point is below the evolute.
  • Bug fix for the initial transform not updating if CCD is turned off
  • #53 Bug fix for strange code in position solver
  • #60 Bug fix for wrong raycast results when using vertical segment/link shapes
  • #61 Bug fix for Polygon.contains when the given point is coincident with an edge of the polygon
  • #88 Bug fixes for the SweepLine algorithm where it would produce incorrect results
  • #64 Fix for a small bug in the BroadphaseKey equals method
  • #69 Fix for Wound.getVertexIterator and Wound.getNormalIterator methods to ensure all array elements are returned
  • #75 Fix for NPE in SweepLine w/ detection of crossing edges and degenerate simple polygons throwing IllegalArgumentException
  • #76 #80 #83 Fixes for the DivideAndConquer, GiftWrap, and GrahamScan convex hull generation algorithms for colinear and coincident points and for precision loss (by mtsamis)

Deprecated:

  • #47 getId methods in all classes are going away in the next version. If you need an id, please use the setUserData method.
  • #79 Transform.IDENTITY - please use new Transform() instead of this static final property.

Breaking Changes:

  • #75 double getRotation() methods were replaced with Rotation getRotation() methods. Use the getRotationAngle() method instead.
  • The Polygon class now checks for degenerate (zero area) polygons and throws an IllegalArgumentException when detected

Other:

  • Updated broadphase tests (by mtsamis)
  • Many more (and improved) unit tests for the geometry package (by mtsamis)
  • #94 Updated the Ray class constructors to normalize the input direction to help avoid common usage issues.

v3.3.0 - April 14th, 2018

Tag | Maven Release

New Features:

  • #30 Performance improvements for Android
  • #29 Java 9 modules support @io7m
  • #29 OSGi support @io7m
  • More control of iteration count and epsilon values in the GJK algorithm
  • #29 Proper Maven-ization of the project with automated building, testing, and packaging @io7m
  • Added an enabled flag for the ContactConstraint class to allow contacts to be temporarily turned off, but still warm started and tracked.

Bug Fixes:

  • The GJK algorithm hanging in rare cases

Deprecated:

  • ContactListener.sensed method has been deprecated. Sensor events are sent to the ContactListener.begin, ContactListener.persist, and ContactListener.end methods instead with a sensor flag. NOTE: The ContactListener.sensed method still exists, but is no longer called.
  • SimpleContactManager was combined with WarmStartingContactManager into DefaultContactManager. You can turn off warm starting via the setWarmStartingEnabled(boolean) method.

Breaking Changes:

  • The ContactListener.sensed method is no longer called.

Other:

  • Some other small performance enhancements

v3.2.4 - May 1st, 2017

Tag | Maven Release

Bug Fixes:

  • #26 Joint.world property not set to null when the joint is removed

Other:

  • Small javadoc updates
  • Changed the DefaultBroadphaseFilter to allow non-dynamic vs. non-dynamic bodies to continue in the collision detection pipeline as long as one of them is a sensor
  • Changed the Sap broadphase detector to use a self-balancing binary tree by default.

v3.2.3 - September 4th, 2016

Tag | Maven Release

Bug Fixes:

  • #20 Sap.detect(aabb, filter) returns false when it should return true
  • #21 Wrong values returned from getRadius(Vector2) methods for Slice, Capsule, Ellipse, and HalfEllipse

v3.2.2 - June 19th, 2016

Tag | Maven Release

New Features:

  • #19 Added the Link shape class to fix the internal edge problem
  • Exposed a set/get method for the BroadphaseFilter that is being used in the World.detect method to give more control over the filtering during the broadphase.

Bug Fixes:

  • Fixed a small bug in the Segment class where the second normal was incorrect, but was changed to the correct one during collision detection.

Other:

  • Small code clean up here and there.
  • Updated copyright dates.

v3.2.1 - November 23rd, 2015

Tag | Maven Release

New Features:

  • Added getAngularTranslation and getLinearSpeed methods to the WheelJoint class.
  • Added setLength method to the PulleyJoint class.

Bug Fixes:

  • Fixed a bug where the normals were rotated improperly for Polygon and Segment shapes for local rotations.
  • Fixed a bug with the Rectangle.getRotation method where it would report the angle negative.

Deprecated:

  • getJointTranslation and getJointSpeed on the WheelJoint class for getLinearTranslation and getAngularSpeed.

Other:

  • Updated samples to use a common base class for rendering and other stuff to make the samples contain mostly dyn4j usage code.
  • The WheelJoint's default frequency is now set to 8.0 by default for easier use.
  • The RevoluteJoint's default limits are set to the initial angle between the bodies (the limit is still disabled by default).
  • More javadoc updates.

v3.2.0 - September 30th, 2015

Tag | Maven Release

New Features:

  • Performance improvements.

Deprecated:

  • Body.setMass() it was odd that it set the mass type to Mass.Type.NORMAL. Use the Body.setMass(MassType) method instead.

Breaking Changes:

  • The Mass.Type enumeration has been renamed to MassType.
  • The BroadphaseDetector interface has changed drastically.
  • The three SAP algorithms have been replaced by one.
  • The CollisionListener.collision(Body,Body) method has been removed due to changes made to the broad-phase.
  • The Body.getFixtures() method now returns an unmodifiable list.
  • The World.getBodies() and World.getJoints() methods now return unmodifiable lists.
  • The Bounds interface changed to only include the Translatable interface due to the some bounds types not supporting rotation.
  • Many member variables and methods have been made final, package private and private.
  • Made a few internal classes package private.
  • Many deprecated methods and classes have been removed.
  • The Settings.ContinuousDetectionMode enumeration has been moved to its own class file with the same name.
  • Renamed the MouseJoint to PinJoint.

Other:

  • Cleaner API with less classes, methods and members to sift through and more interface options for extensibility.
  • More & revised Javadoc comments.

v3.1.11 - January 31st, 2015

Tag | Maven Release

New Features:

  • A few minor performance improvements.

Bug Fixes:

  • Fixed a bug in the raycast(Ray,double,boolean,boolean,List) method where it was calling itself, causing a StackOverflowException.

Other:

  • Changed the Math.hypot calls to Math.sqrt since the former is much slower. It's slower due to the overflow/underflow handling, which dyn4j doesn't need.
  • Added code to export Rays for the Java exporter.

v3.1.10 - July 20th, 2014

Tag | Maven Release

New Features:

  • Added a new update(double, int) method to the World class that will execute any number of steps given the elapsed time.
  • Added get/set methods for the time accumulator on the World class.

Bug Fixes:

  • Fixed a bug in the WeldJoint class when using two fixed angular velocity bodies.
  • Fixed a NPE bug in the World.detect methods.
  • Fixed a bug in the EarClipping class where the decomposition would lead to a colinear vertex situation.
  • Fixed a bug in Bayazit class where it would select a closest vertex that was not visible by the current vertex. Sadly, this has made it much slower.

Other:

  • Updated license dates.

v3.1.9 - March 29th, 2014

Tag | Maven Release

New Features:

  • Added a new interface, Triangulator, that both the EarClipping and SweepLine algorithms implement that allows you to get a triangulation of a simple polygon.
  • Added a bunch of new detect methods to the World class to allow filtering of sensor bodies, inactive bodies, or by a Filter object and some other features.
  • Added a new DetectListener interface specifically for the World.detect methods that allow arbitrary filtering of collision tests.
  • Added new raycast and convexCast methods that include a Filter and ignoreInactive parameters.

Bug Fixes:

  • Fixed a bug in the SweepLine class where it would get a NPE when there were vertices who had close to the same y value (were sorted incorrectly).
  • Fixed a bug in the EarClipping class where extra half edges were added to the DCEL at termination that didn't need to be.
  • Fixed a bug in the Interval.intersection(Interval) class where it was performing the union rather than the intersection.
  • Fixed a bug in the SweepLine class where it would enter an infinite loop due to a poor sort condition during the decompose to y-monotone phase.
  • Fixed a bug in the convexCast methods where it would exit early instead of continuing to test other fixtures when false was returned from a particular ConvexCastListener method.
  • Fixed a bug in the Sandbox app where null would be output instead of the correct body instance.

Deprecated:

  • World.detect(AABB), World.detect(Convex), and World.detect(Convex, Transform) have been replaced by with new World.detect methods that have more input and output options.

Breaking Changes:

  • The World.detect, World.raycast, and World.convexCast methods now filter out inactive bodies by default (they were included in versions before).

Other:

  • Regression JUnit tests for bugs listed above.
  • Made a few small changes to some classes (added hashcode methods and changes like this) that have zero effect on usage, output or performance.

v3.1.8 - December 21st, 2013

Tag | Maven Release

New Features:

  • Added the methods Body.getFixture(Vector2), Body.getFixtures(Vector2), Body.removeFixture(Vector2), and Body.removeFixtures(Vector2) which allow you to get/remove fixtures given a world space point.

Bug Fixes:

  • Fixed a bug in the Vector2.distance(double, double) method (wrong since 1.1.0, yikes!). Thankfully its not used anywhere in the engine so no regression.
  • Fixed a bug in Body.applyImpulse(Vector2, Vector2) where the body would not be awakened.

Other:

  • Regression JUnit test for Vector2.distance(double, double) method.
  • Added documentation to the World.convexCast methods to explain the limitation of the start of the cast (its a similar limitation as the raycast methods).
  • The Body.setLinearVelocity(Vector2) method now transfers the x,y values of the given velocity to the body's velocity vector. This has no effect on anything, except this way you can reuse the vector passed to this method now (earlier it was doing a reference assignment).

v3.1.7 - October 12th, 2013

Tag | Maven Release

Bug Fixes:

  • Fixed a bug in the Ellipse.getHalfHeight method where it was returning the half width instead.
  • Fixed a bug in the Ellipse.contains method where it would fail if there was a local translation and a local rotation.
  • Fixed a bug in the Graphics2DRenderer that would incorrectly render the Ellipse shapes (this was why the above bug existed).
  • Fixed a bug in the HalfEllipse.contains method where it would fail if there was a local translation and a local rotation.

Breaking Changes:

  • Had to remove the Ellipse.getPointClosestToPoint method due to an incorrect assumption resulting in incorrect return values. The real solution to this problem involves solving a quartic equation which is typically done by a root finding algorithm.

Other:

  • Regression JUnit test for Ellipse.getHalfHeight, Ellipse.contains, and HalfEllipse.contains methods

v3.1.6 - October 6th, 2013

Tag | Maven Release

New Features:

  • Added a "slack" flag to the PulleyJoint to allow the constraint to be applied only when the current length is greater than the total length. To turn this feature on, use the setSlackEnabled method.

Bug Fixes:

  • Fixed a bug in the Segment.getSegmentIntersection methods where it would return an intersection point falsely.

Other:

  • Regression JUnit test for Segment.getSegmentIntersection

v3.1.5 - September 14th, 2013

Tag | Maven Release

New Features:

  • Added a new Capsule shape primitive.
  • Added a new Slice shape primitive.
  • Updated the createUnitCirclePolygon method to be more efficient.
  • Added methods to generate polygonal capsules, slices, ellipses, and half ellipses to the Geometry class.
  • Added a new Ellipse shape primitive (GJK support only).
  • Added a new HalfEllipse shape primitive (GJK support only).
  • Added a Graphics2DRenderer class to the examples directory to show how to render the shapes using Java2D. Some of the new shapes are difficult to render properly due to local rotation and curved features.
  • Added a new FallbackNarrowphaseDetector which uses FallbackConditions to determine when to use a fallback NarrowphaseDetector rather than the primary. This is useful when you want to use the SAT algorithm with the ellipse or half ellipse shapes (fallback to GJK on these types). See the SingleTypedFallbackCondition and PairwiseTypedFallbackCondition classes.
  • Added equivalent instance methods for common Segment and line operations to the Segment class.
  • Added a couple of methods to do a fast radial expansion of a polygon.
  • Added scaling operations to the Geometry class.
  • Added Convex Casting to the World class. This also included a rework of the Time of Impact and CCD code.

Bug Fixes:

  • Fixed a bug in the Vector2.getAngleBetween method where it would return an angle outside the range of [-pi, pi]
  • Fixed a bug in the Gjk algorithm where a near zero vector was not being caught, causing a false negative during collision and a false positive in the distance method.
  • Fixed some bugs in the JUnit tests (no real effect but still important so that future releases do not impact existing functionality)

Deprecated:

  • Body.setVelocity and Body.getVelocity have been replaced by Body.setLinearVelocity and Body.getLinearVelocity respectively.

Breaking Changes:

  • The addition of convex casting caused an overhaul of the Time of Impact and CCD code. This could have breaking changes if you were hooking directly into any of this functionality.

Other:

  • Many more JUnit tests.
  • Updated license dates to be consistent.
  • Removed the TestBed code. You can always go get it from any version tagged 3.1.4 or lower under the tags folder in SVN.

v3.1.4 - June 12th, 2013

Tag | Maven Release

New Features:

  • Added a new feature to the Geometry class for flipping shapes about an arbitrary line (defined as an axis and point).
  • Not really a feature, but a createAABB accepting no arguments was added to the shape interface for convenience.

Bug Fixes:

  • Fixed a bug that was introduced in 3.1.3 where the average center was not computed correctly since the vertex indexer was a 1 instead of an i.

Breaking Changes:

  • The shape, fixture, body, etc ids were updated from string to their UUID counter parts for better flexibility. However, if you were saving or doing anything with the ids, that will need to change to something like getId().toString().

v3.1.3

Tag

Bug Fixes:

  • Fixed a major bug in the Polygon inertia calculation where it did not take into account the local center. This in turn made multi-fixture masses incorrect as well.

v3.1.2 - November 6th, 2012

Tag | Maven Release

New Features:

  • Added ids to ContactPoint objects to help track them.

Breaking Changes:

  • The ContactPoint and subclasses now must take in a ContactPointId object
  • The IndexedManifoldPointId class no longer has the setXXX methods

v3.1.1 - August 11th, 2012

Tag | Maven Release

New Features:

  • Added detect methods to the World class to do collision detection on a area bounded by an AABB or Convex.
  • Added contains methods for bodies, joints and listeners to the World class.
  • Added the createSweptAABB method to the Swept interface. Used in the CCD code to help cull collision tests.
  • Added contains(Vector2) and contains(double,double) to the AABB class to test for point in AABB.
  • Added a addFixture method to the Body class that accepts density, friction and restitution values for convenience.
  • Added a contains(BodyFixture) method to the Body class.
  • Added applyImpulse(Vector2), applyImpulse(double) and applyImpulse(Vector2, Vector2) methods to the Body class.
  • Added a getExpanded methods to the AABB and Interval classes. Added intersection and getIntersection methods to the AABB class. Added a getLength method to the Interval class.
  • Moved getUserData to the Constraint class so that you can now assign a user object to contact constraints.
  • Added initial capacity parameters to the constructors of relevant classes to help size internal structures appropriately for better performance.
  • Added line and segment intersection methods to the Segment class

Bug Fixes:

  • Fixed a bug in the ContactConstraintSolver where if there were two contacts and just one was disabled, it was still possible that they would both be solved.
  • The expand methods in the Interval and AABB classes would accept a negative expansion amount. If the expansion was larger than the size, the interval or AABB would be invalid. This has been fixed to return degenerate versions (about the mid point) instead.

Deprecated:

  • World class methods remove(Body,boolean), remove(Body), remove(Joint), removeAll, removeAll(boolean), add(Body), add(Joint), and removeListeners replaced with removeBody(Body,boolean), removeBody(Body), removeJoint(Joint), removeAllBodiesAndJoints, removeAllBodiesAndJoints(boolean), addBody(Body), addJoint(Joint), and removeAllListeners respectively.
  • RectangularBounds replaced with AxisAlignedBounds.
  • Body class methods apply(double), apply(Force), apply(Torque), apply(Vector2), and apply(Vector2, Vector2) replaced with applyTorque(double), applyForce(Force), applyTorque(Torque), applyForce(Vector2), and applyForce(Vector2, Vector2) respectively.
  • ContactManager.isEmpty() replaced with ContactManager.isCacheEmpty()

Breaking Changes:

  • The Step.update(double) method has been changed from public to protected.
  • Changed the ContactConstraint to have a List of Contacts instead of the Contact array.
  • The Settings.setStepFrequency method has been changed to accept 1/frequency (1/60) instead of frequency (60) as before. In versions before 3.1.1 one you could pass in 60 and it would be automatically inverted.
  • The Shape.rotate(double) method's purpose has been changed to rotate the shape about the origin. A new method, rotateAboutCenter has been created to replace the old functionality.
  • The Broadphase detectors were returning a locally stored list that was cleared and re-populated on the detect method. These methods now return a new list each time. They now also return an empty list when there are no collisions via the Collections.emptyList() method.

Other:

  • Small performance enhancements via manual inlining of methods.
  • Small performance enhancements via appropriate collection sizing.
  • Small performance hit from returning a new list from the broadphase detect methods.
  • Small performance enhancement to DynamicAABBTree.detect methods by changing the recursive search to a stackless iterative search.
  • Small performance hit from returning new Penetration and Manifold objects from the CollisionListener methods.
  • The Settings class now allows any values one or greater for the velocity and position constraint solver iterations. In addition any value greater than zero can be used for the step frequency.
  • Updated Javadocs for the convex shape classes with documentation on where the center of the shape will be and general restrictions on construction.
  • Updated Javadocs for all listener types to help aid understanding of their use and pitfalls.
  • Replaced the usage of the synchronized Stack class with ArrayDeque or ArrayList to improve performance.
  • Many more JUnit tests.

v3.1.0 - July 2nd, 2012

Tag | Maven Release

New Features:

  • MotorJoint - Best for character movement.
  • Coordinate Shifting - For large worlds.
  • AngleJoint ratio - For creating gears.
  • Multiple listeners
  • Runtime version checking

Bug Fixes:

  • Added checks for bodies and joints already added to another world.
  • Fixed a bug in the World.removeAll method where it would still report a destoryed body even if notify was false.
  • Fixed a bug in the Transform.setRotation method where it was set incorrectly.
  • Fixed a bug in the FrictionJoint class where the linear constraint was not being satisfied.
  • Fixed a bug in the MouseJoint class where it wouldn't work if the body was FIXED_LINEAR_VELOCITY mass type.
  • Fixed a bug in the World.getJoinedBodies and World.getInContactBodies methods to only return one instance of a joined/contact body if it was joined or in contact multiple times.

Breaking Changes:

  • The World.remove(Body) no longer automatically notifies of destroyed contacts or joints. Use the World.remove(Body,boolean) method to receive notifications.
  • The entire listener scheme has been revamped to allow multiple listeners of all types. There are new methods that replace all the old methods on the World class: World.addListener, World.removeListener, World.getListeners(class), etc.
  • The Version class no longer has the version numbers public. Instead use the getXXX methods. This allows runtime version checking of the dyn4j jar.
  • The Force.isComplete and Torque.isComplete methods have changed to add an elapsed time parameter. This allows better tracking of when a force/torque is completed.