10-02-2024, 10:50 PM
I was playing around with this and discovered that CreatePhysicsBodyRectangle creates rectangles with very strange attributes. In the original C physics_demo.c, try replacing -
with -
Those rectangles just roll and roll and roll! It's very odd as the library works pretty well with regular polygons but the momentum on those rectangles is off the scale!
Code: (Select All)
CreatePhysicsBodyPolygon(GetMousePosition(), GetRandomValue(20, 80), GetRandomValue(3, 8), 10);
Code: (Select All)
CreatePhysicsBodyRectangle(GetMousePosition(), GetRandomValue(20, 80), GetRandomValue(20, 80), 10);
RokCoder - dabbling in QB64pe for fun