Skip to content

Phaser Box2D v1.1.0

Latest
Compare
Choose a tag to compare
@photonstorm photonstorm released this 01 Jan 15:59
· 36 commits to main since this release
  • The b2CastOutput function now takes two b2Vec instances, rayPoint and rayNormal. These are now passed in from locally cached values where-ever b2ShapeCast is called. This prevents a crash when b2TransformPoint is called on the output.point which was previously null.
  • Renamed smooth segment to chain segment as per #783 (erincatto/box2d#783)
    • b2CollideSmoothSegmentAndPolygon -> b2CollideChainSegmentAndPolygon
    • b2CollideSmoothSegmentAndCapsule -> b2CollideChainSegmentAndCapsule
    • b2CollideSmoothSegmentAndCircle -> b2CollideChainSegmentAndCircle
    • b2SmoothSegment -> b2ChainSegment
    • b2Shape.smoothSegment -> b2Shape.chainSegment and the type has changed from b2SmoothSegment to b2ChainSegment
    • b2_smoothSegmentShape -> b2_chainSegmentShape
      b2Shape_GetSmoothSegment->b2Shape_GetChainSegment`
  • Fix for skipped shape in ray cast callback (returning -1) (erincatto/box2d@bcc834b)
  • Removed unused automatic mass functions:
    • b2Body_SetAutomaticMass function removed
    • b2Body_GetAutomaticMass function removed
    • b2Body.automaticMass property renamed to b2Body.updateBodyMass
  • b2_huge renamed to B2_HUGE
  • b2_maxWorlds renamed to B2_MAX_WORLDS
  • b2_maxRotation renamed to B2_MAX_ROTATION
  • b2_pi renamed to B2_PI
  • b2_defaultMaskBits renamed to B2_DEFAULT_MASK_BITS
  • b2_maxPolygonVertices renamed to B2_MAX_POLYGON_VERTICES
  • b2_defaultCategoryBits renamed to B2_DEFAULT_CATEGORY_BITS
  • b2_treeStackSize renamed to B2_TREE_STACK_SIZE