forked from bit/DotRecastNetSim
1.5 KiB
1.5 KiB
Building DotRecast.Recast.Demo
DotRecast.Recast.Demo
uses dotnet 8 to build platform specific projects. Download it and make sure it's available on your path, or specify the path to it.- Open a command prompt, point it to a directory and clone DotRecast to it:
git clone https://github.com/ikpil/DotRecast.git
- Open
<DotRecastDir>\DotRecast.sln
with Visual Studio 2022 and buildDotRecast.Recast.Demo
- Optionally, you can run using the
dotnet run
command withDotRecast.Recast.Demo.csproj
- Optionally, you can run using the
Windows
- need to install microsoft visual c++ redistributable package
Linux & macOS & Windows
- Navigate to the
DotRecast.Recast.Demo
folder and rundotnet run
Running Unit tests
With VS2022
- In Visual Studio 2022 go to the test menu and press
Run All Tests
With CLI
- in the DotRecast folder open a command prompt and run
dotnet test
Integrating with your game or engine
It is recommended to add the source directories DotRecast.Core
, DotRecast.Detour.Crowd
, DotRecast.Detour.Dynamic
, DotRecast.Detour.TitleCache
, DotRecast.Detour.Extras
and DotRecast.Recast
into your own project depending on which parts of the project you need. For example your level building tool could include DotRecast.Core
, DotRecast.Recast
, and DotRecast.Detour
, and your game runtime could just include DotRecast.Detour
.