pub struct SegmentCollider {
pub start: Point,
pub end: Point,
pub response: CollisionResponse,
}Expand description
Two-sided finite segment, including endpoint contacts.
Fields§
§start: PointSegment start.
end: PointSegment end.
response: CollisionResponseContact response.
Trait Implementations§
Source§impl Clone for SegmentCollider
impl Clone for SegmentCollider
impl Copy for SegmentCollider
Source§impl Debug for SegmentCollider
impl Debug for SegmentCollider
Source§impl ParticleModifier for SegmentCollider
impl ParticleModifier for SegmentCollider
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 SegmentCollider
impl Freeze for SegmentCollider
impl Move for SegmentCollider
impl RefUnwindSafe for SegmentCollider
impl Send for SegmentCollider
impl Sync for SegmentCollider
impl Unpin for SegmentCollider
impl UnsafeUnpin for SegmentCollider
impl UnwindSafe for SegmentCollider
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