summaryrefslogtreecommitdiffhomepage
path: root/src/physac.h
AgeCommit message (Collapse)Author
2020-01-29Review PHYSAC_NO_THREADS on WebAssemblyRay
2020-01-29Review bool type checkRay
2020-01-29Review spacingRay
2020-01-29Renamed Mat2 to Matrix2x2Ray
2019-10-29Review formatting for PR #1004Ray
2019-10-29fix various problems, thanks CppCheck :) (#1005)João Coelho
* explained a bit more the core_window_letterbox example * fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-10-17Remove trailing spacesRay
2019-05-20Avoid some warningsRay
2019-05-10Add WinMM library for linkageraysan5
Now it's required on Windows if not using a busy wait loop
2018-10-10Physac.h fix for variable array size declaration.noshbar
Generating the projects using CMake, targeting VS2017, results in an error when compiling. This is due to physac.h trying to make a 'vertices' array of size 'int count', making it const does not work, either. This changes the static declaration to a malloc/free combo. Tested using the physics-demo.
2018-10-04Fix physac's fixed time stepPablo Marcos Oltra
2018-07-29Fix Physac examples to be run without creating new threadPablo Marcos Oltra
2018-05-29Reviewed Windows resource file nameRay
2018-03-10Fixed compilation code comment in headervictorfisac
2018-03-10Fixed memory leaks in physics step operationsvictorfisac
2018-01-25#include header for time() on WindowsAhmad Fatoum
2017-12-24Review physac timming systemraysan5
2017-11-22Avoid duplicate definition of feature macroAhmad Fatoum
Feature macros need to be defined before #including any headers, preferably through the build system, but this is good enough. Fixes a compile error on my fork's Travis CI.
2017-07-30Make physac work on OS XBenjamin Summerton
Physac wasn't working on OS X. It looks like the necessary timing code wasn't being compiled in by the preprocessor. fixes #340
2017-06-11Add define to have CLOCK_MONOTONIC work in c99Michael Vetter
If we compile with c99 without gnu extensions (gnu99) we need this define, to have CLOCK_MONOTONIC and similar macros available
2017-05-16Some reviews for RPIRay
2017-05-11Avoid math function duplicatesRay
2017-04-16Updated physac to latest versionraysan5
2017-03-24c99 fix, some linux housekeepingRDR8
2017-03-06Update physac source and examples with new changesvictorfisac
2017-03-06Fix bug in isGrounded state calculationsvictorfisac
2017-02-16Improved modules description -IN PROGRESS-Ray
Working in modules configuration flags...
2016-12-22Fix physac.h building on linuxSaggi Mizrahi
Signed-off-by: Saggi Mizrahi <[email protected]>
2016-11-21Updated Physac libraryvictorfisac
2016-06-14Updated physac header documentationvictorfisac
2016-06-14Fixed spacing and set UpdatePhysics() function as static...victorfisac
and remove static from PhysicsThread().
2016-06-14Fix current time valuevictorfisac
2016-06-14Fixed bug in delta time calculation...victorfisac
and added PHYSAC_NO_THREADS define. Improved physac example drawing frames per second in screen.
2016-06-12Added internal hi-resolution timer to physac...victorfisac
... and now physac thread creation is done in InitPhysics() and it is destroyed in ClosePhysics(). User just need to call these functions to use physac module.
2016-06-11Convert physac module from static steps to fixed time stepsvictorfisac
Old physics update system used a static number of steps to calculate physics (450 for desktop and 64 for android). It was too much and it was limited by target frame time... Now physics update runs in a secondary thread using a fixed delta time value to update steps. Collisions are perfectly detected and resolved and performance has been improved so much.
2016-06-11Corrected keywords usageraysan5
2016-06-09Reduced physic steps resolutionraysan5
2016-06-09Converted physac module to header onlyraysan5
2016-06-02Removed DrawPhysicObjectInfo() functionraysan5
To avoid additional dependencies
2016-05-20Updated to avoid pointersraysan5
2016-03-23Physac redesign (3/3)victorfisac
Finally, physics update is handled in main thread using steps to get accuracy in collisions detection instead of moving it to a new thread. Examples are finished as simple and clear as I could. Finally, physac module is MORE simpler than in the first version, calculation everything by the same way for both types of physic objects. I tryed to add rotated physics a couple of times but I didn't get anything good to get a base to improve it. Maybe for the next version... No bugs or strange behaviours found during testing.
2016-03-16Updated headersvictorfisac
2016-03-16physac module redesign (2/3)victorfisac
physac module base almost finished. All collisions are now resolved properly and some force functions was added. COLLIDER_CAPSULE removed for now because in 2D everything is composed by rectangle and circle colliders... The last step is move physics update loop into another thread and update it in a fixed time step based on fps.
2016-03-05Fixed physac header little mistakevictorfisac
2016-03-05Redesigned physics module (IN PROGRESS)victorfisac
physac modules is being redesigned. Physics base behaviour is done and it is composed by three steps: apply physics, resolve collisions and fix overlapping. A basic example is currently in progress. The next steps are try to add torque and unoriented physic collisions and implement physics basic functions to add forces. Rigidbody grounding state is automatically calculated and has a perfect result. Rigidbodies interacts well with each others. To achieve physics accuracy, UpdatePhysics() is called a number of times per frame. In a future, it should be changed to another thread and call it without any target frame restriction. Basic physics example has been redone (not finished) using the new module functions. Forces examples will be redone so I removed it from branch.
2016-02-13Reviewed physics moduleraysan5
A deeper revision required, not clear enough for the user Key: Create a PhysicObjects pool
2016-01-20Review some function names for consistency with raymathraysan5
2016-01-20Some formatting tweaksraysan5
2016-01-05Added some comments and fixed spacesvictorfisac
2016-01-03Improved and added functions to physac engine modulevictorfisac
- Improved physics calculations. - Added AddForceAtPosition function (added to all enabled rigidbodies). - Updated raylib header.