pub struct CircleCollider {
pub center: Point,
pub radius: f64,
pub response: CollisionResponse,
}Expand description
Solid circular obstacle with swept collision detection.
Fields§
§center: PointObstacle center.
radius: f64Nonnegative obstacle radius.
response: CollisionResponseContact response.
Trait Implementations§
Source§impl Clone for CircleCollider
impl Clone for CircleCollider
impl Copy for CircleCollider
Source§impl Debug for CircleCollider
impl Debug for CircleCollider
Source§impl ParticleModifier for CircleCollider
impl ParticleModifier for CircleCollider
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 Forget for CircleCollider
impl Freeze for CircleCollider
impl RefUnwindSafe for CircleCollider
impl Send for CircleCollider
impl Sync for CircleCollider
impl Unpin for CircleCollider
impl UnsafeUnpin for CircleCollider
impl UnwindSafe for CircleCollider
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