Expand description
Safe Rust wrapper around Jolt Physics using JoltC.
These bindings are best-effort and incomplete. The joltc-sys crate contains the unsafe bindings that this crate uses and covers a lot more of Jolt’s API.
These bindings target Jolt Physics 5.0.0. You can view the C++ documentation for this version of Jolt Physics here:
Structs§
- Body
- See also: Jolt’s
Body
class. - Body
Filter Impl - Holds an implementation of the BodyFilter trait or the manual vtable equivalent.
- BodyId
- An ID that can be used to access a body using
BodyInterface
. - Body
Interface - See also: Jolt’s
BodyInterface
class. - Broad
Phase Layer - Represents a broad phase layer.
- Broad
Phase Layer Filter Impl - Holds an implementation of the BroadPhaseLayerFilter trait or the manual vtable equivalent.
- Broad
Phase Layer Interface Impl - Holds an implementation of the BroadPhaseLayerInterface trait or the manual vtable equivalent.
- Color
- Represents an sRGB color with alpha.
- DVec3
- A 3-dimensional vector.
- Mat4
- A 4x4 column major matrix.
- Narrow
Phase Query - See also: Jolt’s
NarrowPhaseQuery
class. - Object
Layer - Represents an object layer, which is internally either a u16 or a u32.
- Object
Layer Filter Impl - Holds an implementation of the ObjectLayerFilter trait or the manual vtable equivalent.
- Object
Layer Pair Filter Impl - Holds an implementation of the ObjectLayerPairFilter trait or the manual vtable equivalent.
- Object
VsBroad Phase Layer Filter Impl - Holds an implementation of the ObjectVsBroadPhaseLayerFilter trait or the manual vtable equivalent.
- Physics
System - The root of everything for a physics simulation.
- Quat
- A quaternion representing an orientation.
- RRay
Cast - See also: Jolt’s
RRayCast
class. - RayCast
Args - Arguments for
NarrowPhaseQuery::cast_ray
. - RayCast
Result - The result of calling
NarrowPhaseQuery::cast_ray
. - Ref
- Rust equivalent to Jolt’s
RefConst
- Vec3
- A 3-dimensional vector.
- Vec4
- A 4-dimensional vector.
Traits§
- Body
Filter - See also: Jolt’s
BodyFilter
class. - Broad
Phase Layer Filter - See also: Jolt’s
BroadPhaseLayerFilter
class. - Broad
Phase Layer Interface - See also: Jolt’s
BroadPhaseLayerInterface
class. - From
Jolt - Trait for converting a value from its corresponding [
joltc-sys
] type. - Into
Jolt - Trait for converting a value into its corresponding [
joltc-sys
] type. - Into
Rolt - Convenience trait for
FromJolt
. - Object
Layer Filter - See also: Jolt’s
ObjectLayerFilter
class. - Object
Layer Pair Filter - See also: Jolt’s
ObjectLayerPairFilter
class. - Object
VsBroad Phase Layer Filter - See also: Jolt’s
ObjectVsBroadPhaseLayerFilter
class. - RefTarget
- Rust version of Jolt’s
RefTarget
CRTP.
Functions§
- factory_
delete - Deletes the globally registered factory.
- factory_
init - Creates a new global factory. Required for initialization and used by Jolt’s serialization.
- register_
default_ allocator JPH::RegisterDefaultAllocator
- register_
types JPH::RegisterTypes
- unregister_
types JPH::UnregisterTypes