/cornell-mcray

🕹 A quick'n'dirty game sample using kajiya, physx-rs, and dolly

Primary LanguageRustApache License 2.0Apache-2.0

🕹️ Cornell McRay t'Racing

A quick'n'dirty game sample using kajiya, physx-rs, and dolly.

mcray

System requirements

See the kajiya readme.

Building

Clone this repo to the same parent directory that kajiya is in:

kajiya/             <- root of the `kajiya` repository
cornell-mcray/      <- this repository

Make sure the bake bin in the kajiya folder is built:

cd kajiya
cargo build --release -p bake

Bake the meshes for cornell-mcray:

cd cornell-mcray
bake.cmd

^ replace bake.cmd with ./bake.sh on Linux.

Running

Make sure dxcompiler.dll / libdxcompiler.so is in the executable environment.

(You can grab it from kajiya and copy into cornell-mcray, or stash it somewhere in the system PATH)

Then run:

cargo run --release

Controls

  • WSAD - driving
  • Shift - nitro
  • B - spawn a box 🤷‍♂️
  • Q - party mode 🎊

License

This contribution is dual licensed under EITHER OF

at your option.