unreal.MoverPredictTrajectoryParams¶
- class unreal.MoverPredictTrajectoryParams(num_prediction_samples: int = 0, seconds_per_sample: float = 0.0, use_visual_component_root: bool = False, disable_gravity: bool = False, optional_start_sync_state: type = (), optional_start_aux_state: type = (), optional_input_cmds: None = [])¶
Bases:
StructBaseFMoverPredictTrajectoryParams: parameter block for querying future trajectory samples based on a starting state See UMoverComponent::GetPredictedTrajectory
C++ Source:
Plugin: Mover
Module: Mover
File: MoverSimulationTypes.h
Editor Properties: (see get_editor_property/set_editor_property)
disable_gravity(bool): [Read-Write] If true, gravity will not taken into account during predictionnum_prediction_samples(int32): [Read-Write] How many samples to predict into the future, including the first sample, which is always a snapshot of the starting state with 0 accumulated time.optional_input_cmds(Array[MoverInputCmdContext]): [Read-Write] Optional input cmds to use, one per sample. If none are specified, prediction will begin with last-used inputs. If too few are specified for the number of samples, the final input in the array will be used repeatedly to cover remaining samples.optional_start_aux_state(‘undefined’): [Read-Write] Optional starting aux state. If not set, prediction will begin from the current state.optional_start_sync_state(‘undefined’): [Read-Write] Optional starting sync state. If not set, prediction will begin from the current state.seconds_per_sample(float): [Read-Write] How much time between predicted samplesuse_visual_component_root(bool): [Read-Write] If true, samples are based on the visual component transform, rather than the ‘updated’ movement root. Typically, this is a mesh with its component location at the bottom of the collision primitive. If false, samples are from the movement root.
- property disable_gravity: bool¶
[Read-Write] If true, gravity will not taken into account during prediction
- Type:
(bool)
- property num_prediction_samples: int¶
[Read-Write] How many samples to predict into the future, including the first sample, which is always a snapshot of the starting state with 0 accumulated time.
- Type:
(int32)
- property optional_input_cmds: None¶
[Read-Write] Optional input cmds to use, one per sample. If none are specified, prediction will begin with last-used inputs. If too few are specified for the number of samples, the final input in the array will be used repeatedly to cover remaining samples.
- Type:
- property optional_start_aux_state: type¶
[Read-Write] Optional starting aux state. If not set, prediction will begin from the current state.
- Type:
(‘undefined’)
- property optional_start_sync_state: type¶
[Read-Write] Optional starting sync state. If not set, prediction will begin from the current state.
- Type:
(‘undefined’)
- property seconds_per_sample: float¶
[Read-Write] How much time between predicted samples
- Type:
(float)
- property use_visual_component_root: bool¶
[Read-Write] If true, samples are based on the visual component transform, rather than the ‘updated’ movement root. Typically, this is a mesh with its component location at the bottom of the collision primitive. If false, samples are from the movement root.
- Type:
(bool)