pub struct PhysicsFoundation<Allocator: AllocatorCallback, Geom: Shape> { /* private fields */ }
Expand description

A PxPhysics, PxFoundation and optional PxPvd combined into one struct for ease of use. Parametrized by the Foundation’s Allocator and the Physics’ Shape type.

Implementations

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
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
Create a new scene with from a descriptor.
Create a new aggregate. Must be added to a scene with the same actor user data types.
Create a new articulation. Must be added to a scene with the same user data types.
Create a new articulation. Must be added to a scene with the same user data types.
Create a new BVH structure. The BVH structure class-trait is not implemented yet.
Create a new constraint. The constraint class-trait is not implemented yet.
Create a new convex mesh. The convex mesh class-trait is not implemented yet.
Create a new height field.
Create a new material with ref count set to one.
Create a new pruning structure. The pruning structure class-trait is not implemented yet.
Create a dynamic actor with given transform and user data. Other fields are initialized to their defaults. Read more
Create a static actor with given transform and user data. Other fields are initialized to their defaults. Read more
Create a new shape.
Create a new pruning structure. The pruning structure class-trait is not implemented yet.
Create a new rigid dynamic actor.
Create a new rigid static actor.
Create a plane, with plane equation normal.dot(v) + offset = 0.
Get the BVH structures created by this physics object.
Get the convex meshes created by this physics object.
Get the height fields created by this physics object.
Get the height fields created by this physics object.
Get the shapes created by this physics object.
Get the triangle mesghes created by this object.
Get the tolerance scale.
Get the physics insertion callback, used for real-time cooking of physics meshes.

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.