Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UNetworkPredictionComponent
- UBaseMovementComponent
- UMockPhysicsComponent
References
| Module | NetworkPredictionExtras |
| Header | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/MockPhysicsComponent.h |
| Include | #include "MockPhysicsComponent.h" |
Syntax
UCLASS&40;BlueprintType, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class UMockPhysicsComponent : public UBaseMovementComponent
Remarks
ActorComponent for running MockPhysicsSimulation
Variables
| Type | Name | Description | |
|---|---|---|---|
| FMockPhysicsSimulation * | ActiveSimulation | ||
| bool | bIsCharging | Currently charging up charge attack. | |
| FPhysicsChargeCueEvent | OnChargeActivatedEvent | ||
| FMockPhysicsNotifyStateChange | OnChargeStateChange | ||
| FPhysicsJumpCueEvent | OnJumpActivatedEvent | ||
| TPimplPtr< FMockPhysicsSimulation > | OwnedSimulation | ||
| FMockPhysicsInputCmd | PendingInputCmd | Next local InputCmd that will be submitted. This is just one way to do it. | |
| FProduceMockPhysicsInput | ProduceInputDelegate |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | FinalizeFrame
(
const void* SyncState, |
Take output for simulation. | |
| void | HandleCue
(
const FMockPhysicsJumpCue& JumpCue, |
||
| void | HandleCue
(
const FMockPhysicsChargeCue& ChargeCue, |
||
| void | InitializeSimulationState
(
const void* Sync, |
Seed initial values based on component's state. | |
| void | InitMockPhysicsSimulation
(
FMockPhysicsSimulation* Simulation |
||
| void | ProduceInput
(
const int32 DeltaTimeMS, |
Get latest local input prior to simulation step. |
Overridden from UNetworkPredictionComponent
| Type | Name | Description | |
|---|---|---|---|
| void | Network Prediction. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FMockPhysicsNotifyStateChange | Charge (not a Cue event, just state) | ||
| FPhysicsChargeCueEvent | |||
| FPhysicsJumpCueEvent | Assignable delegates chosen so that owning actor can implement in BPs. May not be the best choice for all cases. |
Typedefs
| Name | Description |
|---|---|
| FProduceMockPhysicsInput | Forward input producing event to someone else (probably the owning actor) |