Replicated Capsule Component
The Replicated Capsule Component handles the resizing, replication, mesh transform adjustment for render targets that are M2 characters. This is a default component on M2M CharacterBase.
Usage
Use the Replicated Capsule Component by adding it to a MorpheusActor. It will function whenever the MA's render target is an M2 character. In order for this to function in the crowd, you'll also need a Morpheus Animated Skeleton Component on the MorpheusActor.
The Replicated Capsule Component contains a (background) replicated CapsuleData field, which can be set on the auth client with SetCapsuleData
and applies the data to the capsule component on the render target character on all clients.
It also has the following toggleable functionality:
Automatically resizes the player's capsule according to the size of their avatar when it's loaded via URL. Toggle with
bCapsuleMatchCustomMesh
/SetMatchCustomMesh
. Even ifSetMatchCustomMesh
is disabled, you can callUpdateCapsuleSizeFromAvatar
to perform this resizing as a one-off.Automatically updates the skeletal mesh transform through the Morpheus Animated Skeleton Component to account for the capsule size. This keeps the player's feet on the floor after the capsule size has been changed. Set with
bCalculateSkeletalMeshTranslationFromCapsule
/SetMeshTranslationToMatchCurrentCapsule
.
To access the capsule data, use the BP helper functions in UJM_CharacterCapsule
.
M2M Character
The M2M character sets the default functionality for its Replicated Capsule Component in LiveConfig.
game.Capsule.MatchCustomMesh
: Sets the CapsuleMatchCustomMesh toggle
game.Capsule.CalculateSkeletalMeshTranslationFromCapsule
: Sets the CalculateSkeletalMeshTranslationFromCapsule toggle
Last updated
Was this helpful?