Paradise.Physics 0.67.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Paradise.Physics --version 0.67.0
                    
NuGet\Install-Package Paradise.Physics -Version 0.67.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="Paradise.Physics" Version="0.67.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Paradise.Physics" Version="0.67.0" />
                    
Directory.Packages.props
<PackageReference Include="Paradise.Physics" />
                    
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 Paradise.Physics --version 0.67.0
                    
#r "nuget: Paradise.Physics, 0.67.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 Paradise.Physics@0.67.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=Paradise.Physics&version=0.67.0
                    
Install as a Cake Addin
#tool nuget:?package=Paradise.Physics&version=0.67.0
                    
Install as a Cake Tool

Paradise.Physics

Collision queries and sphere dynamics for Paradise Engine. CollisionWorld.Build copies static colliders into one native blob with a deterministic BVH. Queries allocate nothing and may run concurrently; rebuild the world when static bodies change.

  • Shapes: spheres, Y-aligned capsules and boxes.
  • Queries: raycasts, linear shape casts and closest surface distance.
  • Filtering: layer masks plus a GroupIndex override.
  • Narrowphase: analytic raycasts, GJK distance and conservative advancement for shape casts.
  • Dynamics: rigid spheres with gravity, contact impulses, friction and spin; planar capsule sliding and support containment. Callers own state and integrate sphere orientation.
  • Character ground: grounded probes with a slope limit, ledge detection and snap-to-ground.

Character ground support

Walkable colliders belong to CollisionFilter.GroundLayer (bit 31, reserved; game layers use bits 0–30). Author floors with CollisionFilter.Ground, or add the bit to a body's BelongsTo when it is also on game layers. CollisionFilter.Default belongs to every layer, so it is ground too: keep walls and props out of ground support with BelongsTo = ~CollisionFilter.GroundLayer (or any mask without the bit). GroundSettings probes with CollisionFilter.GroundProbe, which sees only that layer.

  • CharacterGround.Probe casts a vertical ray from StepHeight above the feet to SnapDistance below them and reports the contact, normal, body and feet height above it. Surfaces steeper than the slope limit are reported but are not ground, and neither is a body the probe starts inside, whose surface it cannot see.
  • CharacterGround.SnapToGround places the feet on that ground, or keeps their height when there is none so the game decides how to fall.
  • CharacterGround.FindLedge follows the ground along a planar move, keeping the feet's starting height above it, and reports the supported fraction and the ground at the edge; ConstrainMove turns that into a LedgePolicy: step off, stop at the edge, or stop and slide along it axis by axis.
  • PlanarCapsuleSlide.MoveGrounded combines the capsule slide (raised by StepHeight while grounded, so floors and low steps do not block it), the ledge policy and snap-to-ground. A grounded move places the feet on the ground followed along it, so long moves over walkable slopes stay grounded.

Support is measured under the feet point, so a character is over an edge once its centre is. PlanarGroundSupport keeps its axis-by-axis clamp, which treats anything its filter hits as support.

Conventions

  • Right-handed, Y-up, −Z forward, metres; RigidTransform carries rotation and translation. Bake scale into geometry.
  • Rays starting inside report fraction zero with a normal opposing the ray.
  • Casts starting in contact report fraction zero with a depenetration normal.
  • Equal fractions/distances select the lowest body index.
  • Dispose the world after use. Borrowed CollisionWorldHandle values must not outlive it; default handles represent no world and queries miss.
  • Identical inputs, binary and hardware produce identical results; cross-ISA determinism is not guaranteed.

Future scope

Contact manifolds, EPA, additional dynamic bodies, compound/mesh/convex-hull colliders, all-hit/any-hit collectors, point-distance and AABB-overlap queries, and rotational sweeps.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.67.1 42 11/24/2026
0.67.0 91 11/23/2026
0.66.0 95 11/23/2026
0.65.0 99 11/21/2026
0.64.0 100 11/17/2026
0.63.0 106 11/14/2026
0.62.0 140 10/20/2026
0.61.2 95 10/19/2026
0.61.1 104 10/19/2026
0.61.0 108 10/16/2026
0.60.0 127 10/3/2026
0.59.1 117 10/2/2026
0.59.0 108 9/29/2026
0.58.0 102 9/28/2026
0.57.0 103 9/28/2026
0.56.0 116 9/27/2026
0.55.0 119 9/27/2026
0.54.0 116 9/24/2026
0.53.0 108 9/24/2026
0.52.0 134 9/23/2026
Loading failed