Open 3D Engine Multiplayer Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Multiplayer::NetworkCharacterComponentController Class Reference

#include <NetworkCharacterComponent.h>

Inherits NetworkCharacterComponentControllerBase, and NetworkCharacterRequestBus::Handler.

Public Member Functions

 NetworkCharacterComponentController (NetworkCharacterComponent &parent)
 
void OnActivate (Multiplayer::EntityIsMigrating entityIsMigrating) override
 
void OnDeactivate (Multiplayer::EntityIsMigrating entityIsMigrating) override
 
AZ::Vector3 TryMoveWithVelocity (const AZ::Vector3 &velocity, float deltaTime) override
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Detailed Description

NetworkCharacterComponentController This is the network controller for NetworkCharacterComponent. Class provides the ability to move characters in physical space while keeping the network in-sync.

Member Function Documentation

◆ TryMoveWithVelocity()

AZ::Vector3 Multiplayer::NetworkCharacterComponentController::TryMoveWithVelocity ( const AZ::Vector3 &  velocity,
float  deltaTime 
)
override

TryMoveWithVelocity Will move this character entity kinematically through physical world while also ensuring the network stays in-sync. Velocity will be applied over delta-time to determine the movement amount. Returns this entity's world-space position after the move.


The documentation for this class was generated from the following file: