unreal.MoverMassAgentTrait¶
- class unreal.MoverMassAgentTrait(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
MassAgentSyncTraitThe trait initializes the entity with a NavMoverComponent so Mover and Mass can communicate movement intent and velocity. This trait also sets up necessary translators for these systems based off of Mass sync direction. Note: This trait requires a NavMoverComponent and a MoverComponent to work properly
C++ Source:
Plugin: MoverIntegrations
Module: MoverMassIntegration
File: MoverMassAgentTraits.h
Editor Properties: (see get_editor_property/set_editor_property)
sync_direction(MassTranslationDirection): [Read-Write]sync_transform(bool): [Read-Write] Whether this trait should sync the transform of actor<->entity (based on translation direction) TODO: Currently Mover doesn’t like outside modification of rotation and may throw a warning if Mover’s transform gets set from the entity. It may also cause a rollback.