pub struct PxCooking { /* private fields */ }
Expand description

A new-type wrapper around physx_sys::PxCooking.

Implementations

Create a new cooking instance.

Cook a new BVH structure.

Cook a new convex mesh using a mesh descriptor. The data provided in the mesh descriptor should be validated by PxCooking::validate_convex_mesh before being passed into this method.

Cook a new height field.

Cook a new triangle mesh using a mesh descriptor. The data provided in the mesh descriptor should be validated by PxCooking::validate_triangle_mesh before being passed into this method.

Validate a convex mesh descriptor.

Validate a triangle mesh descriptor.

Trait Implementations

Returns a raw const pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
Returns a raw mut pointer to the wrapped type. Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe. In particular: this pointer should not be used to construct a second owning wrapper around the pointer. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.