Smooth Sync for Unreal
Syncs your networked objects smoothly according to the network owner.
SmoothState Class Reference

Public Member Functions

void copyFromSmoothSync (USmoothSync *smoothSyncScript)
 
void copyFromState (SmoothState *state)
 
void defaultTheVariables ()
 
void Lerp (SmoothState *targetState, SmoothState *start, SmoothState *end, float t)
 Returns a Lerped state that is between two States in time. More...
 
 SmoothState ()
 Default constructor. Does nothing. More...
 
 SmoothState (SmoothState &state)
 
 SmoothState (SmoothState *state)
 
 SmoothState (USmoothSync &smoothSyncScript)
 
 SmoothState (USmoothSync *smoothSyncScript)
 
 ~SmoothState ()
 Deconstructor.
 

Public Attributes

FVector angularVelocity
 The angularVelocity of the owned object when the state was sent. More...
 
bool atPositionalRest
 
bool atRotationalRest
 
float ownerTimestamp
 The network timestamp of the owner when the state was sent. More...
 
FVector position
 The position of the owned object when the state was sent. More...
 
FQuat rotation
 The rotation of the owned object when the state was sent. More...
 
FVector scale
 The scale of the owned object when the state was sent. More...
 
bool teleport
 
FVector velocity
 The velocity of the owned object when the state was sent. More...
 

Constructor & Destructor Documentation

◆ SmoothState()

SmoothState::SmoothState ( )

Default constructor. Does nothing.

Member Function Documentation

◆ Lerp()

void SmoothState::Lerp ( SmoothState targetState,
SmoothState start,
SmoothState end,
float  t 
)

Returns a Lerped state that is between two States in time.

Member Data Documentation

◆ angularVelocity

FVector SmoothState::angularVelocity

The angularVelocity of the owned object when the state was sent.

◆ ownerTimestamp

float SmoothState::ownerTimestamp

The network timestamp of the owner when the state was sent.

◆ position

FVector SmoothState::position

The position of the owned object when the state was sent.

◆ rotation

FQuat SmoothState::rotation

The rotation of the owned object when the state was sent.

◆ scale

FVector SmoothState::scale

The scale of the owned object when the state was sent.

◆ velocity

FVector SmoothState::velocity

The velocity of the owned object when the state was sent.