N3Lite 0.1.13
dotnet add package N3Lite --version 0.1.13
NuGet\Install-Package N3Lite -Version 0.1.13
<PackageReference Include="N3Lite" Version="0.1.13" />
<PackageVersion Include="N3Lite" Version="0.1.13" />
<PackageReference Include="N3Lite" />
paket add N3Lite --version 0.1.13
#r "nuget: N3Lite, 0.1.13"
#:package N3Lite@0.1.13
#addin nuget:?package=N3Lite&version=0.1.13
#tool nuget:?package=N3Lite&version=0.1.13
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 —
N3CharVehiclewraps the character vehicle: movement flags to the four axes, aMovementProfilefor its speeds and what it may do (drive, take input, fly), the jump and NPC paths. The game decides the numbers; oneTick(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 | Versions 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. |
-
.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.