@@ -180,7 +180,11 @@ B2_API b2Polygon b2MakePolygon( const b2Hull* hull, float radius );
180
180
181
181
/// Make an offset convex polygon from a convex hull. This will assert if the hull is not valid.
182
182
/// @warning Do not manually fill in the hull data, it must come directly from b2ComputeHull
183
- B2_API b2Polygon b2MakeOffsetPolygon ( const b2Hull * hull , float radius , b2Transform transform );
183
+ B2_API b2Polygon b2MakeOffsetPolygon ( const b2Hull * hull , b2Vec2 position , b2Rot rotation );
184
+
185
+ /// Make an offset convex polygon from a convex hull. This will assert if the hull is not valid.
186
+ /// @warning Do not manually fill in the hull data, it must come directly from b2ComputeHull
187
+ B2_API b2Polygon b2MakeOffsetRoundedPolygon ( const b2Hull * hull , b2Vec2 position , b2Rot rotation , float radius );
184
188
185
189
/// Make a square polygon, bypassing the need for a convex hull.
186
190
/// @param h the half-width
@@ -200,10 +204,18 @@ B2_API b2Polygon b2MakeRoundedBox( float hx, float hy, float radius );
200
204
/// Make an offset box, bypassing the need for a convex hull.
201
205
/// @param hx the half-width
202
206
/// @param hy the half-height
203
- /// @param center the local position of the center of the box
207
+ /// @param center the local center of the box
204
208
/// @param rotation the local rotation of the box
205
209
B2_API b2Polygon b2MakeOffsetBox ( float hx , float hy , b2Vec2 center , b2Rot rotation );
206
210
211
+ /// Make an offset rounded box, bypassing the need for a convex hull.
212
+ /// @param hx the half-width
213
+ /// @param hy the half-height
214
+ /// @param center the local center of the box
215
+ /// @param rotation the local rotation of the box
216
+ /// @param radius the radius of the rounded extension
217
+ B2_API b2Polygon b2MakeOffsetRoundedBox ( float hx , float hy , b2Vec2 center , b2Rot rotation , float radius );
218
+
207
219
/// Transform a polygon. This is useful for transferring a shape from one body to another.
208
220
B2_API b2Polygon b2TransformPolygon ( b2Transform transform , const b2Polygon * polygon );
209
221
@@ -712,7 +724,7 @@ typedef bool b2TreeQueryCallbackFcn( int32_t proxyId, int32_t userData, void* co
712
724
/// Query an AABB for overlapping proxies. The callback class is called for each proxy that overlaps the supplied AABB.
713
725
/// @return performance data
714
726
B2_API b2TreeStats b2DynamicTree_Query ( const b2DynamicTree * tree , b2AABB aabb , uint64_t maskBits ,
715
- b2TreeQueryCallbackFcn * callback , void * context );
727
+ b2TreeQueryCallbackFcn * callback , void * context );
716
728
717
729
/// This function receives clipped ray cast input for a proxy. The function
718
730
/// returns the new ray fraction.
@@ -735,7 +747,7 @@ typedef float b2TreeRayCastCallbackFcn( const b2RayCastInput* input, int32_t pro
735
747
/// @param context user context that is passed to the callback
736
748
/// @return performance data
737
749
B2_API b2TreeStats b2DynamicTree_RayCast ( const b2DynamicTree * tree , const b2RayCastInput * input , uint64_t maskBits ,
738
- b2TreeRayCastCallbackFcn * callback , void * context );
750
+ b2TreeRayCastCallbackFcn * callback , void * context );
739
751
740
752
/// This function receives clipped ray cast input for a proxy. The function
741
753
/// returns the new ray fraction.
@@ -756,7 +768,7 @@ typedef float b2TreeShapeCastCallbackFcn( const b2ShapeCastInput* input, int32_t
756
768
/// @param context user context that is passed to the callback
757
769
/// @return performance data
758
770
B2_API b2TreeStats b2DynamicTree_ShapeCast ( const b2DynamicTree * tree , const b2ShapeCastInput * input , uint64_t maskBits ,
759
- b2TreeShapeCastCallbackFcn * callback , void * context );
771
+ b2TreeShapeCastCallbackFcn * callback , void * context );
760
772
761
773
/// Validate this tree. For testing.
762
774
B2_API void b2DynamicTree_Validate ( const b2DynamicTree * tree );
0 commit comments