N3Lite 0.1.13

dotnet add package N3Lite --version 0.1.13
                    
NuGet\Install-Package N3Lite -Version 0.1.13
                    
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="N3Lite" Version="0.1.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="N3Lite" Version="0.1.13" />
                    
Directory.Packages.props
<PackageReference Include="N3Lite" />
                    
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 N3Lite --version 0.1.13
                    
#r "nuget: N3Lite, 0.1.13"
                    
#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 N3Lite@0.1.13
                    
#: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=N3Lite&version=0.1.13
                    
Install as a Cake Addin
#tool nuget:?package=N3Lite&version=0.1.13
                    
Install as a Cake Tool

N3Lite

A vehicle simulation and collision library in plain C#: characters, NPCs and cameras moved by one sub-stepped integrator, against heightmap terrain and triangle-mesh geometry. One source tree, usable from Unity and from plain .NET.

  • Vehicles — a shared integrator with three steering channels (longitudinal force, lateral velocity, turn rate); a four-axis character vehicle with a jump; an NPC vehicle that follows waypoint paths; first-person and third-person camera vehicles with zoom and occlusion handling.
  • Characters — N3CharVehicle wraps the character vehicle: movement flags to the four axes, a MovementProfile for its speeds and what it may do (drive, take input, fly), the jump and NPC paths. The game decides the numbers; one Tick(dt) per frame.
  • Ground contact — a ground clamp with step height, a slope gate, a tripod ground probe and a swept move with wall sliding.
  • Surfaces — a chunked heightmap walked tile by tile, a square cell grid of triangle meshes with a BVH per mesh, and ray and floor queries over both.

Layout

Path What
package/ The Unity package (com.malishade.n3lite). Runtime/ holds every source file and the N3Lite asmdef.
src/N3Lite.csproj The same sources built for .NET, netstandard2.1.
tests/N3Lite.Tests/ xUnit tests, run against the netstandard2.1 build.

The sources have no Unity dependency. The one exception is [BurstCompile] on the triangle-mesh queries (TriangleMeshKernels): inside Unity, Burst compiles them; outside Unity, Runtime/BurstStub.cs supplies the attribute and they run as ordinary C#.

Using it

Unity — add to Packages/manifest.json (path relative to the project's Packages/ folder):

"com.malishade.n3lite": "file:../../N3Lite/package"

and reference the N3Lite assembly from your asmdef.

.NET — reference the project:

<ProjectReference Include="..\N3Lite\src\N3Lite.csproj" />

Build and test

dotnet build src/N3Lite.csproj
dotnet test N3Lite.slnx

Floating point

Burst (Strict float mode) and .NET both round every step to single precision. Unity's Mono does not — it evaluates float expressions in double precision — so with Burst off, or in code Burst does not compile, results can differ between the two in the last bits.

License

Public domain (the Unlicense).

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on N3Lite:

Package Downloads
N3Lite.AORules

Game movement rules on top of N3Lite: per-state speed curves from the run-speed stat, strafe, drive locks, and jump height from stats.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.13 265 11/3/2026
0.1.11 574 10/13/2026
0.1.10 140 10/9/2026
0.1.9 244 10/2/2026
0.1.8 135 10/2/2026
0.1.7 136 9/29/2026
0.1.6 127 9/29/2026
0.1.5 135 9/25/2026
0.1.4 134 9/25/2026
0.1.3 158 9/24/2026
0.1.2 110 9/24/2026
0.1.1 112 9/24/2026