engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FSavedMove_Character类 参考

FSavedMove_Character represents a saved move on the client that has been sent to the server and might need to be played back. 更多...

#include <CharacterMovementComponent.h>

Public 成员函数

virtual bool CanCombineWith (const FSavedMovePtr &NewMove, ACharacter *InCharacter, float MaxDelta) const
 Returns true if this move can be combined with NewMove for replication without changing any behavior
 
virtual void Clear ()
 Clear saved move properties, so it can be re-used.
 
virtual void CombineWith (const FSavedMove_Character *OldMove, ACharacter *InCharacter, APlayerController *PC, const FVector &OldStartLocation)
 Combine this move with an older move and update relevant state.
 
virtual uint8 GetCompressedFlags () const
 Returns a byte containing encoded special movement information (jumping, crouching, etc.)

 
virtual void GetPackedAngles (uint32 &YawAndPitchPack, uint8 &RollPack) const
 Packs control rotation for network transport
 
virtual FVector GetRevertedLocation () const
 Returns starting position if we were to revert the move, either absolute StartLocation, or StartRelativeLocation offset from MovementBase's current location (since we want to try to move forward at this time).
 
virtual bool IsImportantMove (const FSavedMovePtr &LastAckedMove) const
 Returns true if this move is an "important" move that should be sent again if not acked by the server
 
virtual bool IsMatchingStartControlRotation (const APlayerController *PC) const
 Compare current control rotation with stored starting data
 
virtual void PostUpdate (ACharacter *C, EPostUpdateMode PostUpdateMode)
 Set the properties describing the final position, etc. 更多...
 
virtual void PrepMoveFor (ACharacter *C)
 Called before ClientUpdatePosition uses this SavedMove to make a predictive correction

 
virtual void SetInitialPosition (ACharacter *C)
 Set the properties describing the position, etc. 更多...
 
virtual void SetMoveFor (ACharacter *C, float InDeltaTime, FVector const &NewAccel, class FNetworkPredictionData_Client_Character &ClientData)
 Called to set up this saved move (when initially created) to make a predictive correction.
 

Public 属性

float AccelDotThreshold
 Threshold for deciding this is an "important" move based on DP with last acked acceleration.
 
float AccelDotThresholdCombine
 Threshold for deciding if we can combine two moves, true if cosine of angle between them is <= this.
 
float AccelMagThreshold
 Threshold for deciding is this is an important move because acceleration magnitude has changed too much
 
uint32 bForceNoCombine:1
 If true, can't combine this move with another move.
 
uint32 bOldTimeStampBeforeReset:1
 If true this move is using an old TimeStamp, before a reset occurred.
 
float MaxSpeedThresholdCombine
 Client saved moves will not combine if the result of GetMaxSpeed() differs by this much between moves.
 

详细描述

FSavedMove_Character represents a saved move on the client that has been sent to the server and might need to be played back.

成员函数说明

◆ PostUpdate()

virtual void FSavedMove_Character::PostUpdate ( ACharacter *  C,
EPostUpdateMode  PostUpdateMode 
)
virtual

Set the properties describing the final position, etc.

of the moved pawn.

◆ SetInitialPosition()

virtual void FSavedMove_Character::SetInitialPosition ( ACharacter *  C)
virtual

Set the properties describing the position, etc.

of the moved pawn at the start of the move.


该类的文档由以下文件生成: