Paradise.Physics
0.67.1
dotnet add package Paradise.Physics --version 0.67.1
NuGet\Install-Package Paradise.Physics -Version 0.67.1
<PackageReference Include="Paradise.Physics" Version="0.67.1" />
<PackageVersion Include="Paradise.Physics" Version="0.67.1" />
<PackageReference Include="Paradise.Physics" />
paket add Paradise.Physics --version 0.67.1
#r "nuget: Paradise.Physics, 0.67.1"
#:package Paradise.Physics@0.67.1
#addin nuget:?package=Paradise.Physics&version=0.67.1
#tool nuget:?package=Paradise.Physics&version=0.67.1
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
GroupIndexoverride. - 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.Probecasts a vertical ray fromStepHeightabove the feet toSnapDistancebelow 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.SnapToGroundplaces the feet on that ground, or keeps their height when there is none so the game decides how to fall.CharacterGround.FindLedgefollows 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;ConstrainMoveturns that into aLedgePolicy: step off, stop at the edge, or stop and slide along it axis by axis.PlanarCapsuleSlide.MoveGroundedcombines the capsule slide (raised byStepHeightwhile 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;
RigidTransformcarries 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
CollisionWorldHandlevalues 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Paradise.BLOB (>= 0.67.1)
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 |