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.
<PackageVersion Include="SFPhysics" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SFPhysics" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package SFPhysics@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SFPhysics&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SFPhysics&version=2.0.0
                    
Install as a Cake Tool

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 774 3/16/2024
2.3.1 532 11/17/2023
2.2.6 537 4/21/2023
2.2.5 306 4/21/2023
2.2.4 321 4/21/2023
2.2.3 454 3/10/2023
2.2.2 358 3/9/2023
2.2.1.1 271 3/16/2024
2.2.1 360 3/6/2023
2.2.0 352 2/28/2023
2.1.1 371 2/28/2023
2.0.1 696 10/24/2022
2.0.0 608 8/7/2022
1.7.1 616 6/9/2022
1.7.0 592 6/9/2022
1.6.4 571 6/8/2022
1.6.3 568 6/8/2022
1.6.2 581 6/8/2022
1.6.1 566 6/7/2022
1.6.0 560 6/6/2022
1.5.0 607 6/5/2022
1.4.8 559 6/4/2022
1.4.7 566 6/3/2022
1.4.6 580 6/3/2022
1.4.5 592 6/3/2022
1.4.4 578 6/3/2022
1.4.3 565 6/3/2022
1.4.2 566 6/2/2022
1.4.1 584 6/1/2022
1.4.0 568 5/31/2022
1.3.0 580 5/31/2022
1.2.0 605 5/2/2022
1.1.5 611 5/2/2022
1.1.4 552 5/1/2022
1.1.2 563 5/1/2022
1.1.1 616 5/1/2022
1.1.0 578 5/1/2022
1.0.0 587 5/1/2022
0.2.0 622 4/27/2022
0.1.22 606 4/25/2022
0.1.21 593 4/25/2022
0.1.20 571 4/25/2022
0.1.19 600 4/24/2022
0.1.17 577 4/24/2022
0.1.16 618 4/24/2022
0.1.14 594 4/23/2022
0.1.13 583 4/23/2022
0.1.12 581 4/23/2022
0.1.11 572 4/23/2022
0.1.10 602 4/23/2022
0.1.9 524 4/23/2022
0.1.8 579 4/22/2022
0.1.7 563 4/22/2022
0.1.6 580 4/22/2022
0.1.5 574 4/22/2022
0.1.4 580 4/22/2022
0.1.3 620 4/22/2022
0.1.2 571 4/22/2022
0.1.1 579 4/22/2022
0.1.0 582 4/22/2022