pub struct TurretBehavior { /* private fields */ }Expand description
PATU — Turret behavior (v0–v4, 152 bytes)
Configures turret rotation constraints for a bone with yaw/pitch limits, weights, and an optional main-turret flag.
Implementations§
Source§impl TurretBehavior
impl TurretBehavior
pub fn set_unknown_1(&mut self, value: Vector4f)
pub fn set_unknown_2(&mut self, value: Vector4f)
Sourcepub fn bone_index(&self) -> u16
pub fn bone_index(&self) -> u16
Index into BONE array
pub fn set_bone_index(&mut self, value: u16)
Sourcepub fn use_as_main_turret(&self) -> u8
pub fn use_as_main_turret(&self) -> u8
Non-zero if this is the main turret
pub fn set_use_as_main_turret(&mut self, value: u8)
Sourcepub fn turret_group_id(&self) -> u8
pub fn turret_group_id(&self) -> u8
Turret group identifier
pub fn set_turret_group_id(&mut self, value: u8)
Sourcepub fn yaw_limited(&self) -> u32
pub fn yaw_limited(&self) -> u32
Enable yaw limits
pub fn set_yaw_limited(&mut self, value: u32)
pub fn set_yaw_min(&mut self, value: f32)
pub fn set_yaw_max(&mut self, value: f32)
Sourcepub fn yaw_weight(&self) -> f32
pub fn yaw_weight(&self) -> f32
Yaw rotation weight
pub fn set_yaw_weight(&mut self, value: f32)
Sourcepub fn pitch_limited(&self) -> u32
pub fn pitch_limited(&self) -> u32
Enable pitch limits
pub fn set_pitch_limited(&mut self, value: u32)
pub fn set_pitch_min(&mut self, value: f32)
pub fn set_pitch_max(&mut self, value: f32)
Sourcepub fn pitch_weight(&self) -> f32
pub fn pitch_weight(&self) -> f32
Pitch rotation weight
pub fn set_pitch_weight(&mut self, value: f32)
pub fn set_unknown_3(&mut self, value: f32)
pub fn set_unknown_4(&mut self, value: f32)
Sourcepub fn main_bone_offset(&self) -> Vector3f
pub fn main_bone_offset(&self) -> Vector3f
Offset from main bone
pub fn set_main_bone_offset(&mut self, value: Vector3f)
Trait Implementations§
Source§impl Debug for TurretBehavior
impl Debug for TurretBehavior
Source§impl Default for TurretBehavior
impl Default for TurretBehavior
Source§impl Drop for TurretBehavior
impl Drop for TurretBehavior
impl Send for TurretBehavior
Auto Trait Implementations§
impl !Sync for TurretBehavior
impl Freeze for TurretBehavior
impl RefUnwindSafe for TurretBehavior
impl Unpin for TurretBehavior
impl UnsafeUnpin for TurretBehavior
impl UnwindSafe for TurretBehavior
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