pub struct AvatarSpec {
pub id: String,
pub name: String,
pub fbx_path: String,
pub animation_stack: Option<String>,
pub presentation: PresentationMode,
pub spawn_position: [f32; 3],
pub capsule_radius: f32,
pub capsule_height: f32,
pub move_speed: f32,
pub dreamlet_density: f32,
pub dreamlet_color: [f32; 4],
}Expand description
Authored avatar specification — loadable from scene.json or Waymark pack. Defines what FBX to load, how to present it, and physics parameters.
Fields§
§id: StringUnique avatar ID within the scene.
name: StringDisplay name.
fbx_path: StringPath to FBX file (relative to project root).
animation_stack: Option<String>Which animation stack to use (None = first).
presentation: PresentationModePresentation mode for DreamMatter skinning.
spawn_position: [f32; 3]Spawn position in world space.
capsule_radius: f32Physics capsule radius.
capsule_height: f32Physics capsule total height.
move_speed: f32Movement speed (m/s).
dreamlet_density: f32Dreamlet density per unit of mesh surface area.
dreamlet_color: [f32; 4]Base color for dreamlet particles.
Trait Implementations§
Source§impl Clone for AvatarSpec
impl Clone for AvatarSpec
Source§fn clone(&self) -> AvatarSpec
fn clone(&self) -> AvatarSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AvatarSpec
impl Debug for AvatarSpec
Source§impl Default for AvatarSpec
impl Default for AvatarSpec
Source§impl<'de> Deserialize<'de> for AvatarSpec
impl<'de> Deserialize<'de> for AvatarSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AvatarSpec
impl RefUnwindSafe for AvatarSpec
impl Send for AvatarSpec
impl Sync for AvatarSpec
impl Unpin for AvatarSpec
impl UnsafeUnpin for AvatarSpec
impl UnwindSafe for AvatarSpec
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