Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Physac
#7
(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 -

Code: (Select All)
CreatePhysicsBodyPolygon(GetMousePosition(), GetRandomValue(20, 80), GetRandomValue(3, 8), 10);
with -

Code: (Select All)
CreatePhysicsBodyRectangle(GetMousePosition(), GetRandomValue(20, 80), GetRandomValue(20, 80), 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!
Big Grin Yeah. That is crazy. There is an updated version of the library. I'll check if the updated version works better.
Reply


Messages In This Thread
Physac - by a740g - 09-30-2024, 02:57 AM
RE: Physac - by RokCoder - 09-30-2024, 01:07 PM
RE: Physac - by TerryRitchie - 09-30-2024, 05:05 PM
RE: Physac - by grymmjack - 10-01-2024, 02:25 PM
RE: Physac - by Dav - 10-02-2024, 01:10 PM
RE: Physac - by RokCoder - 10-02-2024, 10:50 PM
RE: Physac - by a740g - 10-02-2024, 11:55 PM
RE: Physac - by RokCoder - 10-03-2024, 12:20 AM
RE: Physac - by a740g - 10-14-2024, 07:08 PM
RE: Physac - by justsomeguy - 10-29-2024, 12:02 AM



Users browsing this thread: 1 Guest(s)