SFPhysics 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SFPhysics --version 2.0.0
NuGet\Install-Package SFPhysics -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SFPhysics" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SFPhysics --version 2.0.0
#r "nuget: SFPhysics, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SFPhysics as a Cake Addin
#addin nuget:?package=SFPhysics&version=2.0.0

// Install SFPhysics as a Cake Tool
#tool nuget:?package=SFPhysics&version=2.0.0

A simple 2D physics package for SFML. It only supports circular and AABB bounds. It makes no attempt to detect or handle inter-frame collision misses. It is however perfectly suitable for most classic 2D games.

  Version 2.0.0 has been released. Internally a number of changes have been made: 
  (1) The bounds of a PhysicsBody is now determined when the body is created and may not be changed, although the fields of the bounds may be reset. This eliminated issues with copying such that PhysicsShapes may now be copied freely and thus used (carefully) with stl collection types. 
  (2) Inheritance by field composition has been replaced with pure inheritance by sub classing. The practical result of this is the the PhysicsBodies returned by the collision callback can be upcast to retreieve their PhysicsShape. 
  (3) In multiple places templated classed have been replaced by classname (eg PhysicsShapeT). The old name (eg PhysicsShape) now defines an abstract superclass that can be used like an "interface" in C# ort Java.

The API has one major change, which is that PhysicsShapeList can now hold a mix of PhysicsShape instances (PhysicsCricle, PhysicsSprite) etc. The Create call to make a new shape on the list is now Create where T can be any subclass of PhysicsShape.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.3.2 253 3/16/2024
2.3.1 424 11/17/2023
2.2.6 428 4/21/2023
2.2.5 198 4/21/2023
2.2.4 203 4/21/2023
2.2.3 348 3/10/2023
2.2.2 252 3/9/2023
2.2.1.1 149 3/16/2024
2.2.1 249 3/6/2023
2.2.0 248 2/28/2023
2.1.1 254 2/28/2023
2.0.1 572 10/24/2022
2.0.0 484 8/7/2022
1.7.1 490 6/9/2022
1.7.0 466 6/9/2022
1.6.4 438 6/8/2022
1.6.3 435 6/8/2022
1.6.2 441 6/8/2022
1.6.1 435 6/7/2022
1.6.0 432 6/6/2022
1.5.0 471 6/5/2022
1.4.8 433 6/4/2022
1.4.7 438 6/3/2022
1.4.6 443 6/3/2022
1.4.5 455 6/3/2022
1.4.4 442 6/3/2022
1.4.3 438 6/3/2022
1.4.2 450 6/2/2022
1.4.1 451 6/1/2022
1.4.0 444 5/31/2022
1.3.0 454 5/31/2022
1.2.0 469 5/2/2022
1.1.5 475 5/2/2022
1.1.4 424 5/1/2022
1.1.2 441 5/1/2022
1.1.1 480 5/1/2022
1.1.0 445 5/1/2022
1.0.0 452 5/1/2022
0.2.0 495 4/27/2022
0.1.22 477 4/25/2022
0.1.21 459 4/25/2022
0.1.20 451 4/25/2022
0.1.19 456 4/24/2022
0.1.17 463 4/24/2022
0.1.16 489 4/24/2022
0.1.14 454 4/23/2022
0.1.13 454 4/23/2022
0.1.12 450 4/23/2022
0.1.11 441 4/23/2022
0.1.10 458 4/23/2022
0.1.9 405 4/23/2022
0.1.8 453 4/22/2022
0.1.7 433 4/22/2022
0.1.6 464 4/22/2022
0.1.5 454 4/22/2022
0.1.4 462 4/22/2022
0.1.3 503 4/22/2022
0.1.2 449 4/22/2022
0.1.1 467 4/22/2022
0.1.0 472 4/22/2022