Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ufna opened this issue Aug 3, 2018 · 1 comment
Open

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

ufna opened this issue Aug 3, 2018 · 1 comment

Comments

@ufna
Copy link
Member

ufna commented Aug 3, 2018

FRigidBodyErrorCorrection was changed a lot, check 0331f17

ufna added a commit that referenced this issue Aug 24, 2018
ufna added a commit that referenced this issue Aug 27, 2018
@ufna
Copy link
Member Author

ufna commented Sep 26, 2018

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant