Bouncing ball slowing down over time
- by user46610
I use the unreal engine 4 to bounce a ball off of walls in a 2D space, but over time the ball gets slower and slower.
Movement happens in the tick function of the ball
FVector location = GetActorLocation();
location.X += this->Velocity.X * DeltaSeconds;
location.Y += this->Velocity.Y * DeltaSeconds;
SetActorLocation(location, true);
…