2D Physics Engine
#11
(06-17-2023, 07:24 PM)justsomeguy Wrote:
(06-17-2023, 06:44 PM)TerryRitchie Wrote: I made some modifications to the scene to play around with the physics.

I'm wondering about something curious that happens, I'll call it the "popcorn effect". If you start filing the room I created with objects at some point the objects seem to get extra impulse from somewhere. It looks like popcorn and doesn't stop until the end of object lifetimes starts removing them, allowing the scene to settle down.

Any idea why this happens? Are there settings to control this kind of chaos from happening?

' Set the bouncyness
fzxSetBody cFZX_PARAMETER_RESTITUTION, temp, .95, 0 ' Bounce

Try lowering the restitution to something like .5. Using .95 is like a super ball on steroids. I did that to make it more bouncy.
Ah, gotcha. I'm going through to code to find all of these settings and get a feel for the flow of it. Once I get a better grasp on what's going on I'll cobble together a quick front end to make thing easier on myself.
Software and cathedrals are much the same — first we build them, then we pray.
QB64 Tutorial
Reply


Messages In This Thread
2D Physics Engine - by justsomeguy - 06-17-2023, 04:25 AM
RE: 2D Physics Engine - by a740g - 06-17-2023, 05:28 AM
RE: 2D Physics Engine - by justsomeguy - 06-17-2023, 05:30 AM
RE: 2D Physics Engine - by justsomeguy - 06-17-2023, 07:11 AM
RE: 2D Physics Engine - by TerryRitchie - 06-17-2023, 06:44 PM
RE: 2D Physics Engine - by justsomeguy - 06-17-2023, 07:24 PM
RE: 2D Physics Engine - by TerryRitchie - 06-17-2023, 08:26 PM
RE: 2D Physics Engine - by TerryRitchie - 06-17-2023, 06:54 PM
RE: 2D Physics Engine - by GareBear - 06-17-2023, 08:11 PM
RE: 2D Physics Engine - by TerryRitchie - 06-17-2023, 08:23 PM
RE: 2D Physics Engine - by GareBear - 06-17-2023, 08:24 PM
RE: 2D Physics Engine - by justsomeguy - 06-17-2023, 08:35 PM
RE: 2D Physics Engine - by justsomeguy - 06-17-2023, 08:51 PM
RE: 2D Physics Engine - by justsomeguy - 06-19-2023, 12:25 PM
RE: 2D Physics Engine - by TerryRitchie - 06-19-2023, 01:55 PM
RE: 2D Physics Engine - by justsomeguy - 06-23-2023, 09:24 AM
RE: 2D Physics Engine - by Kernelpanic - 06-23-2023, 04:09 PM
RE: 2D Physics Engine - by justsomeguy - 06-23-2023, 04:40 PM
RE: 2D Physics Engine - by Kernelpanic - 06-23-2023, 06:28 PM
RE: 2D Physics Engine - by justsomeguy - 07-06-2023, 03:08 PM
RE: 2D Physics Engine - by TerryRitchie - 07-06-2023, 06:54 PM
RE: 2D Physics Engine - by justsomeguy - 07-08-2023, 02:01 AM
RE: 2D Physics Engine - by justsomeguy - 07-09-2023, 04:18 AM
RE: 2D Physics Engine - by TerryRitchie - 08-07-2023, 02:52 AM
RE: 2D Physics Engine - by justsomeguy - 08-07-2023, 10:47 AM
RE: 2D Physics Engine - by TerryRitchie - 08-07-2023, 03:25 PM
RE: 2D Physics Engine - by justsomeguy - 08-11-2023, 04:05 PM



Users browsing this thread: 7 Guest(s)