pub struct EngineRootMotionClipIntentV1 { /* private fields */ }Expand description
Effective movement ownership for one source clip.
normalized_clip_name is the exact normalized-document name used to resolve
crate::Config and the measurements map. source_clip_index remains the
stable source ordinal used by prediction scopes; duplicate normalized names
are retained rather than silently selecting one measurement row.
Implementations§
Source§impl EngineRootMotionClipIntentV1
impl EngineRootMotionClipIntentV1
Sourcepub fn new(
source_clip_index: u64,
normalized_clip_mapping_state: EngineRootMotionClipMappingStateV1,
normalized_clip_index: Option<u64>,
normalized_clip_name: Option<String>,
movement_owner_xz: Option<RootMotionProjectOwnerV1>,
movement_owner_y: Option<RootMotionProjectOwnerV1>,
movement_owner_yaw: Option<RootMotionProjectOwnerV1>,
) -> Result<Self, PredictionContractError>
pub fn new( source_clip_index: u64, normalized_clip_mapping_state: EngineRootMotionClipMappingStateV1, normalized_clip_index: Option<u64>, normalized_clip_name: Option<String>, movement_owner_xz: Option<RootMotionProjectOwnerV1>, movement_owner_y: Option<RootMotionProjectOwnerV1>, movement_owner_yaw: Option<RootMotionProjectOwnerV1>, ) -> Result<Self, PredictionContractError>
Construct one bounded source-ordinal/effective-intent row.
Sourcepub const fn source_clip_index(&self) -> u64
pub const fn source_clip_index(&self) -> u64
Zero-based source clip ordinal used by prediction scopes.
Sourcepub const fn normalized_clip_index(&self) -> Option<u64>
pub const fn normalized_clip_index(&self) -> Option<u64>
Same-load normalized document clip ordinal, when the loader established one for this source clip.
Sourcepub const fn normalized_clip_mapping_state(
&self,
) -> EngineRootMotionClipMappingStateV1
pub const fn normalized_clip_mapping_state( &self, ) -> EngineRootMotionClipMappingStateV1
Loader-established state of the source-to-normalized clip mapping.
Sourcepub fn normalized_clip_name(&self) -> Option<&str>
pub fn normalized_clip_name(&self) -> Option<&str>
Exact normalized-document clip name used for config and measurements.
Sourcepub const fn movement_owner_xz(&self) -> Option<RootMotionProjectOwnerV1>
pub const fn movement_owner_xz(&self) -> Option<RootMotionProjectOwnerV1>
Effective horizontal XZ movement owner.
Sourcepub const fn movement_owner_y(&self) -> Option<RootMotionProjectOwnerV1>
pub const fn movement_owner_y(&self) -> Option<RootMotionProjectOwnerV1>
Effective vertical Y movement owner.
Sourcepub const fn movement_owner_yaw(&self) -> Option<RootMotionProjectOwnerV1>
pub const fn movement_owner_yaw(&self) -> Option<RootMotionProjectOwnerV1>
Effective yaw movement owner.
Trait Implementations§
Source§impl Clone for EngineRootMotionClipIntentV1
impl Clone for EngineRootMotionClipIntentV1
Source§fn clone(&self) -> EngineRootMotionClipIntentV1
fn clone(&self) -> EngineRootMotionClipIntentV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more