Skip to main content

SplineRibbon

Struct SplineRibbon 

Source
pub struct SplineRibbon { /* private fields */ }
Expand description

SRIB — Spline ribbon segment (v0, 272 bytes)

Defines a single segment of a spline-based ribbon with emission offset/vector, velocity, bone binding, and pitch/yaw/velocity variation channels.

Implementations§

Source§

impl SplineRibbon

Source

pub fn new() -> Self

§Panics

Panics if the native allocation fails.

Source

pub fn emission_offset(&self) -> Vector3f

Emission point offset from bone

Source

pub fn set_emission_offset(&mut self, value: Vector3f)

Source

pub fn emission_vector(&self) -> Vector3f

Emission direction vector

Source

pub fn set_emission_vector(&mut self, value: Vector3f)

Source

pub fn velocity(&self) -> Ref<'_, AnimRefF32>

Animated base velocity Borrows the field in place — no copy, no allocation.

Source

pub fn velocity_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn reserved(&self) -> u32

Reserved (always 0)

Source

pub fn set_reserved(&mut self, value: u32)

Source

pub fn bone_index(&self) -> u32

Index into BONE array

Source

pub fn set_bone_index(&mut self, value: u32)

Source

pub fn velocity_base_factor(&self) -> Ref<'_, AnimRefF32>

Animated base velocity factor Borrows the field in place — no copy, no allocation.

Source

pub fn velocity_base_factor_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn velocity_end_factor(&self) -> Ref<'_, AnimRefF32>

Animated end velocity factor Borrows the field in place — no copy, no allocation.

Source

pub fn velocity_end_factor_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn yaw_type(&self) -> u32

Yaw variation type

Source

pub fn set_yaw_type(&mut self, value: u32)

Source

pub fn yaw_amplitude(&self) -> Ref<'_, AnimRefF32>

Yaw variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn yaw_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn yaw_frequency(&self) -> Ref<'_, AnimRefF32>

Yaw variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn yaw_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn pitch_type(&self) -> u32

Pitch variation type

Source

pub fn set_pitch_type(&mut self, value: u32)

Source

pub fn pitch_amplitude(&self) -> Ref<'_, AnimRefF32>

Pitch variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn pitch_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn pitch_frequency(&self) -> Ref<'_, AnimRefF32>

Pitch variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn pitch_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn velocity_type(&self) -> u32

Velocity variation type

Source

pub fn set_velocity_type(&mut self, value: u32)

Source

pub fn velocity_amplitude(&self) -> Ref<'_, AnimRefF32>

Velocity variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn velocity_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn velocity_frequency(&self) -> Ref<'_, AnimRefF32>

Velocity variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn velocity_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn yaw(&self) -> Ref<'_, AnimRefF32>

Animated yaw angle Borrows the field in place — no copy, no allocation.

Source

pub fn yaw_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn pitch(&self) -> Ref<'_, AnimRefF32>

Animated pitch angle Borrows the field in place — no copy, no allocation.

Source

pub fn pitch_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn emission_vector_norm_factor(&self) -> f32

Precomputed ≈ 0.01 / |emissionVector|

Source

pub fn set_emission_vector_norm_factor(&mut self, value: f32)

Source

pub fn velocity_norm_factor(&self) -> f32

Precomputed ≈ 0.01 / velocity.initValue

Source

pub fn set_velocity_norm_factor(&mut self, value: f32)

Trait Implementations§

Source§

impl Debug for SplineRibbon

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SplineRibbon

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for SplineRibbon

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Send for SplineRibbon

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.