Function physx_sys::PxController_resize_mut
source · pub unsafe extern "C" fn PxController_resize_mut(
self_: *mut PxController,
height: f32
)
Expand description
Resizes the controller.
This function attempts to resize the controller to a given size, while making sure the bottom position of the controller remains constant. In other words the function modifies both the height and the (center) position of the controller. This is a helper function that can be used to implement a ‘crouch’ functionality for example.