Skip to content

Commit

Permalink
fixed physicsmovementcomponent bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kintaro Kawai authored and Kintaro Kawai committed Oct 19, 2023
1 parent 248e762 commit 72fe086
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** Movement controller for a physics-based entity. */
public class PhysicsMovementComponent extends Component implements MovementController {
private static final Logger logger = LoggerFactory.getLogger(PhysicsMovementComponent.class);
private Vector2 speed;
private Vector2 speed = Vector2.Zero;
private PhysicsComponent physicsComponent;
private Vector2 targetPosition;
private boolean movementEnabled = true;
Expand Down

0 comments on commit 72fe086

Please sign in to comment.