Cargo Features

PhysX has no features set by default.

[dependencies]
physx = { version = "0.19.0", features = ["structgen", "debug-structs", "glam"] }
structgen

During building of the sys crate, this additional program can be built which is used to autogenerate Rust code from the physx headers. Normal use of the physx crate would never need to use this feature.

Enables structgen of physx-sys

debug-structs

Enables Debug derivations for the FFI structures, which can be useful for print debugging

Enables debug-structs of physx-sys

Features from optional dependencies

glam implicit feature

Enables glam ^0.23

glam:

A simple and fast 3D math library for games and graphics