Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - profk

Pages: [1]
SFML projects / Re: Simple Fast SFML Physics
« on: May 03, 2022, 01:10:17 am »
Okay first release is ready I believe.

I implemented the movement based collision pruner.  It works in my examples, but though if it causes you probmes you can disable it with world.setIgnoreMovement(true).

I have added a "Hello Physics" example of a circle bouncing off the floor as per suggestion (thank you).  I have also started the documentation wiki with a page explaining the design of the library.

SFML projects / Re: Simple Fast SFML Physics
« on: May 02, 2022, 02:34:54 am »
Good idea.  Ill add that as a part of the documentation pass.

Its at version 1.1.5 and the existing API should now be stable.  I didn't like the way the highest level was architected so I refactored.  It means a tiny bit more complexity exposed at the SFML Physics shapes level as they are now wrappers of an SFML drawable and a PhysicsBody, but the result is MUCH cleaner code-wise.

SFML projects / Re: Simple Fast SFML Physics
« on: April 29, 2022, 09:50:38 pm »
Usable version now up at:

Sample pointer-less game written using it and SFML at

SFML projects / Simple Fast SFML Physics
« on: April 26, 2022, 07:17:33 pm »
I have written a VERY simple physics library that is designed to be used with SFML.  At its highest level it has pre-integrated physics shape classes.  The API is designed to be easy and mimics the SFML pointerless API approach.

Right now it ONLY handles AABBs and circular bounds and that is all I expect to add to it myself.  It has "PhysicsShape" classes right now for RectangleShape and CircleShape.  I do intend to add similar wrappers for the other SFML shape classes soon.

There is NO documentation yet, sorry, I'll get to it when the examples and features are done.  There is however a working breakout example.

The library is available on github as https://github.com/profK/SFPhysics and as a nuget package at https://www.nuget.org/packages/SFPhysics/

The breakout example is also in github at https://github.com/profK/Breakout2

The actual code for collision detection and response is heavily borrowed from:

I should note that, although individual collision resolutions are very fast, it over-all scales at O(n^2).  Optimizations are on the dev list.

SFML projects / Re: Simple SFML/Box2D example
« on: January 20, 2022, 06:34:46 pm »
This is for the intro C++ class I'm teaching this term.

Their final project they have a range of choices, at different grading levels.

The simplest is to create 2 new levels for this game with different colored and scored blocks in
different pattern.

The most complex is to take my code and use it as a starting point to implement Asteroids.

SFML projects / Re: Simple SFML/Box2D example
« on: January 20, 2022, 01:17:24 am »
Its fixed.  The problem was the repo was set  to private before.

Ive also gotten the .h files all commented now.  Should finish the .cpp files tomorrow

SFML projects / Simple SFML/Box2D example
« on: January 17, 2022, 08:09:02 pm »
I just released the following example project for my students.
I am still working on adding audio and complete documentation.


SFML projects / Working C++ Nuget package for Visual Studio 2019
« on: January 12, 2022, 05:54:24 pm »
Based on SFML 2.5.1 releases
Supports all build modes (Win32/x64, Debug and Release)
By default it builds with the dynamic libs and copies them to the output directory automatically.

Created for my C++ students.

Nuget: https://www.nuget.org/packages/SFML_VS2019/

Github:  https://github.com/profK/SFML-VS2019-

Pages: [1]