avian3d::collision::colliderTrait ScalableCollider
source pub trait ScalableCollider: AnyCollider {
// Required methods
fn scale(&self) -> Vector;
fn set_scale(&mut self, scale: Vector, detail: u32);
// Provided method
fn scale_by(&mut self, factor: Vector, detail: u32) { ... }
}
Expand description
A trait for colliders that support scaling.
Returns the global scaling factor of the collider.
Sets the global scaling factor of the collider.
If the scaling factor is not uniform and the resulting scaled shape
can not be represented exactly, the given detail
is used for an approximation.
Scales the collider by the given scaling factor.
If the scaling factor is not uniform and the resulting scaled shape
can not be represented exactly, the given detail
is used for an approximation.