pub struct AvatarDef {
pub spawn_position: [f32; 3],
pub spawn_look_at: [f32; 3],
pub pov: PointOfView,
pub movement_speed: f32,
pub height: f32,
pub model_entity: Option<EntityRef>,
}Expand description
Avatar configuration describing the user/explorer presence in a world.
Fields§
§spawn_position: [f32; 3]Where the avatar spawns in the world.
spawn_look_at: [f32; 3]Initial look direction.
pov: PointOfViewCamera point-of-view mode.
movement_speed: f32Movement speed in units per second.
height: f32Avatar eye-height above ground (used for first-person eye level).
model_entity: Option<EntityRef>Entity reference of the 3D model representing the avatar (3rd-person).
When None, the world has no visible avatar model.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AvatarDef
impl<'de> Deserialize<'de> for AvatarDef
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
impl StructuralPartialEq for AvatarDef
Auto Trait Implementations§
impl Freeze for AvatarDef
impl RefUnwindSafe for AvatarDef
impl Send for AvatarDef
impl Sync for AvatarDef
impl Unpin for AvatarDef
impl UnsafeUnpin for AvatarDef
impl UnwindSafe for AvatarDef
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