pub struct MdlControllerType(/* private fields */);Expand description
Controller type code identifying which property is animated.
Stored as a raw u32 matching the on-disk binary format. Named constants
are provided for Ghidra-verified types; unknown codes are preserved
losslessly for roundtrip fidelity.
Controller type codes are node-type-specific - the same numeric value may have different semantic meaning on different node types (e.g., Light vs Emitter). The base node types (Position, Orientation, Scale) are shared across all node types.
Base node controller codes verified via MdlNode::InternalParseField
(0x00465560). See docs/notes/mdl_mdx.md §Model Formats.
Implementations§
Source§impl MdlControllerType
impl MdlControllerType
Sourcepub const ORIENTATION: Self
pub const ORIENTATION: Self
Orientation quaternion (4 floats: w, x, y, z). Code 20.
Sourcepub const SELFILLUMCOLOR: Self
pub const SELFILLUMCOLOR: Self
Self-illumination color (3 floats: r, g, b). Code 100. Mesh context.
Sourcepub const SHADOW_RADIUS: Self
pub const SHADOW_RADIUS: Self
Shadow radius (1 float). Code 96. Light context.
Sourcepub const VERTICAL_DISPLACEMENT: Self
pub const VERTICAL_DISPLACEMENT: Self
Vertical displacement (1 float). Code 100. Light context.
Note: same raw code as SELFILLUMCOLOR (mesh) and DRAG (emitter).
Sourcepub const MULTIPLIER: Self
pub const MULTIPLIER: Self
Light multiplier (1 float). Code 140. Light context.
Sourcepub const ALPHA_START: Self
pub const ALPHA_START: Self
Emitter alpha start (1 float). Code 84.
Sourcepub const COMBINETIME: Self
pub const COMBINETIME: Self
Emitter combine time (1 float). Code 96.
Sourcepub const FRAME_START: Self
pub const FRAME_START: Self
Emitter frame start (1 float). Code 112.
Sourcepub const P2P_BEZIER2: Self
pub const P2P_BEZIER2: Self
Emitter point-to-point bezier control 2 (1 float). Code 128.
Sourcepub const P2P_BEZIER3: Self
pub const P2P_BEZIER3: Self
Emitter point-to-point bezier control 3 (1 float). Code 132.
Sourcepub const PARTICLE_ROT: Self
pub const PARTICLE_ROT: Self
Emitter particle rotation (1 float). Code 136.
Sourcepub const SIZE_START: Self
pub const SIZE_START: Self
Emitter size start (1 float). Code 144.
Sourcepub const SIZE_START_Y: Self
pub const SIZE_START_Y: Self
Emitter size start Y (1 float). Code 152.
Sourcepub const SIZE_END_Y: Self
pub const SIZE_END_Y: Self
Emitter size end Y (1 float). Code 156.
Sourcepub const BLUR_LENGTH: Self
pub const BLUR_LENGTH: Self
Emitter blur length (1 float). Code 180.
Sourcepub const LIGHTNING_DELAY: Self
pub const LIGHTNING_DELAY: Self
Emitter lightning delay (1 float). Code 184.
Sourcepub const LIGHTNING_RADIUS: Self
pub const LIGHTNING_RADIUS: Self
Emitter lightning radius (1 float). Code 188.
Sourcepub const LIGHTNING_SCALE: Self
pub const LIGHTNING_SCALE: Self
Emitter lightning scale (1 float). Code 192.
Sourcepub const LIGHTNING_SUB_DIV: Self
pub const LIGHTNING_SUB_DIV: Self
Emitter lightning subdivision (1 float). Code 196.
Sourcepub const LIGHTNING_ZIGZAG: Self
pub const LIGHTNING_ZIGZAG: Self
Emitter lightning zigzag (1 float). Code 200.
Sourcepub const PERCENT_START: Self
pub const PERCENT_START: Self
Emitter percent start (1 float). Code 220.
Sourcepub const PERCENT_MID: Self
pub const PERCENT_MID: Self
Emitter percent mid (1 float). Code 224.
Sourcepub const PERCENT_END: Self
pub const PERCENT_END: Self
Emitter percent end (1 float). Code 228.
Sourcepub const SIZE_MID_Y: Self
pub const SIZE_MID_Y: Self
Emitter size mid Y (1 float). Code 236.
Sourcepub const RANDOM_BIRTH_RATE: Self
pub const RANDOM_BIRTH_RATE: Self
Emitter random birthrate (1 float). Code 240.
Sourcepub const TARGET_SIZE: Self
pub const TARGET_SIZE: Self
Emitter target size (1 float). Code 252.
Sourcepub const NUM_CONTROL_PTS: Self
pub const NUM_CONTROL_PTS: Self
Emitter number of control points (1 float). Code 256.
Sourcepub const CONTROL_PT_RADIUS: Self
pub const CONTROL_PT_RADIUS: Self
Emitter control point radius (1 float). Code 260.
Sourcepub const CONTROL_PT_DELAY: Self
pub const CONTROL_PT_DELAY: Self
Emitter control point delay (1 float). Code 264.
Sourcepub const TANGENT_SPREAD: Self
pub const TANGENT_SPREAD: Self
Emitter tangent spread (1 float). Code 268.
Sourcepub const TANGENT_LENGTH: Self
pub const TANGENT_LENGTH: Self
Emitter tangent length (1 float). Code 272.
Sourcepub const COLOR_START: Self
pub const COLOR_START: Self
Emitter color start (3 floats: r, g, b). Code 392.
Trait Implementations§
Source§impl Clone for MdlControllerType
impl Clone for MdlControllerType
Source§fn clone(&self) -> MdlControllerType
fn clone(&self) -> MdlControllerType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more