09-30-2024, 02:57 AM
(This post was last modified: 02-23-2025, 10:51 PM by a740g.
Edit Reason: Update links
)
This is a standalone version of the Physac 2D physics engine ripped straight out of raylib-64. This version does not have any raylib dependencies (i.e. you can use the engine with vanilla QB64 graphics commands). As a bonus, it also contains the reasings library (Robert Penner's easing equations) and raymath (raylib math library).
There are some support functions as well. See include/support.bi for documentation.
There are 6 examples. 5 of them are for Physac and 1 for reasings.
Documentation:
Usage:
Copy the complete "include" directory to your project location.
And then (assuming your source files is at the root of the project location) do the following:
Physac
reasings
raymath
![[Image: screenshot2.png]](https://i.ibb.co/V39V8fN/screenshot2.png)
![[Image: screenshot3.png]](https://i.ibb.co/v4Q2WvP/screenshot3.png)
![[Image: screenshot4.png]](https://i.ibb.co/HG8dCWc/screenshot4.png)
![[Image: screenshot5.png]](https://i.ibb.co/vvpCQV3/screenshot5.png)
![[Image: screenshot6.png]](https://i.ibb.co/G7H5pW2/screenshot6.png)
![[Image: screenshot1.png]](https://i.ibb.co/tMyWDS8/screenshot1.png)
Download: https://github.com/a740g/Physac64/archiv...s/main.zip
There are some support functions as well. See include/support.bi for documentation.
There are 6 examples. 5 of them are for Physac and 1 for reasings.
Documentation:
Usage:
Copy the complete "include" directory to your project location.
And then (assuming your source files is at the root of the project location) do the following:
Physac
Code: (Select All)
$INCLUDE:'include/physac.bi'
reasings
Code: (Select All)
$INCLUDE:'include/reasings.bi'
raymath
Code: (Select All)
$INCLUDE:'include/raymath.bi'
![[Image: screenshot2.png]](https://i.ibb.co/V39V8fN/screenshot2.png)
![[Image: screenshot3.png]](https://i.ibb.co/v4Q2WvP/screenshot3.png)
![[Image: screenshot4.png]](https://i.ibb.co/HG8dCWc/screenshot4.png)
![[Image: screenshot5.png]](https://i.ibb.co/vvpCQV3/screenshot5.png)
![[Image: screenshot6.png]](https://i.ibb.co/G7H5pW2/screenshot6.png)
![[Image: screenshot1.png]](https://i.ibb.co/tMyWDS8/screenshot1.png)
Download: https://github.com/a740g/Physac64/archiv...s/main.zip