PsRealVehicle icon indicating copy to clipboard operation
PsRealVehicle copied to clipboard

[RC] Update interpolation to the new system from UE 4.20

Open ufna opened this issue 7 years ago • 1 comments

FRigidBodyErrorCorrection was changed a lot, check 0331f170637e68298517d594e94917c9736d91c9

ufna avatar Aug 03 '18 18:08 ufna

void AVehicle::PostNetReceivePhysicState()
{
	// NOTE: we intentionally do not call base implementation here
	
	FRigidBodyState NewState;
	ReplicatedMovement.CopyTo(NewState);
	FVector DeltaPos(FVector::ZeroVector);
	
	GetVehicleMovement()->ConditionalApplyRigidBodyState(NewState, GetVehicleMovement()->PhysicErrorCorrection, DeltaPos);
}

ufna avatar Sep 26 '18 08:09 ufna