pub struct LookAt {
pub look_at_type: LookAtType,
pub offset_from_head_bone: Vec3,
pub range_map_horizontal_inner: LookAtRangeMap,
pub range_map_horizontal_outer: LookAtRangeMap,
pub range_map_vertical_down: LookAtRangeMap,
pub range_map_vertical_up: LookAtRangeMap,
}Expand description
The eye-gaze configuration of an avatar: pivot offset from the head bone, range maps per direction, and the mode (bone vs expression).
Fields§
§look_at_type: LookAtTypeWhether gaze drives eye bones or expression presets.
offset_from_head_bone: Vec3Gaze origin relative to the head bone.
range_map_horizontal_inner: LookAtRangeMapRange used when either eye turns toward the nose.
range_map_horizontal_outer: LookAtRangeMapRange used when either eye turns away from the nose.
range_map_vertical_down: LookAtRangeMapRange used for downward gaze.
range_map_vertical_up: LookAtRangeMapRange used for upward gaze.
Implementations§
Source§impl LookAt
impl LookAt
Sourcepub fn new(look_at_type: LookAtType) -> Self
pub fn new(look_at_type: LookAtType) -> Self
Creates a LookAt configuration with the VRM fallback offset and ranges.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LookAt
impl RefUnwindSafe for LookAt
impl Send for LookAt
impl Sync for LookAt
impl Unpin for LookAt
impl UnsafeUnpin for LookAt
impl UnwindSafe for LookAt
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