10-02-2024, 11:55 PM
(10-02-2024, 10:50 PM)RokCoder Wrote: 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 -Yeah. That is crazy. There is an updated version of the library. I'll check if the updated version works better.
with -Code: (Select All)CreatePhysicsBodyPolygon(GetMousePosition(), GetRandomValue(20, 80), GetRandomValue(3, 8), 10);
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)CreatePhysicsBodyRectangle(GetMousePosition(), GetRandomValue(20, 80), GetRandomValue(20, 80), 10);