pub struct SdfCollider {
pub grid: Arc<SignedDistanceGrid>,
pub response: CollisionResponse,
}Expand description
Grid collision; velocity*step must remain below the smallest cell dimension.
Fields§
§grid: Arc<SignedDistanceGrid>Cached immutable collision grid.
response: CollisionResponseNormal/tangential contact response.
Trait Implementations§
Source§impl Clone for SdfCollider
impl Clone for SdfCollider
Source§impl Debug for SdfCollider
impl Debug for SdfCollider
Source§impl ParticleModifier for SdfCollider
impl ParticleModifier for SdfCollider
Source§fn apply(
&self,
particle: &mut Particle,
step: f32,
_: Time,
_: &mut Random,
) -> Result<(), ValidationError>
fn apply( &self, particle: &mut Particle, step: f32, _: Time, _: &mut Random, ) -> Result<(), ValidationError>
Updates one live particle; index and canonical age remain engine-owned.
Source§fn apply_event(
&self,
particle: &mut Particle,
step: f32,
_: Time,
_: &mut Random,
) -> Result<bool, ValidationError>
fn apply_event( &self, particle: &mut Particle, step: f32, _: Time, _: &mut Random, ) -> Result<bool, ValidationError>
Optional predicted-step collision response, preserving the original callback API.
Source§fn resets_color(&self) -> bool
fn resets_color(&self) -> bool
Requests birth-color restoration before the ordered modifier chain.
Multiplicative lifetime energy curves use this to avoid frame-count accumulation.
Auto Trait Implementations§
impl !RefUnwindSafe for SdfCollider
impl !UnwindSafe for SdfCollider
impl Forget for SdfCollider
impl Freeze for SdfCollider
impl Send for SdfCollider
impl Sync for SdfCollider
impl Unpin for SdfCollider
impl UnsafeUnpin for SdfCollider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more