mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix formatting
This commit is contained in:
@@ -163,7 +163,12 @@ namespace gdjs {
|
||||
}
|
||||
|
||||
movementAngleIsAround(degreeAngle: float, tolerance: float) {
|
||||
return gdjs.evtTools.common.angleDifference(this._movementAngle, degreeAngle) <= tolerance;
|
||||
return (
|
||||
gdjs.evtTools.common.angleDifference(
|
||||
this._movementAngle,
|
||||
degreeAngle
|
||||
) <= tolerance
|
||||
);
|
||||
}
|
||||
|
||||
setAngularMaxSpeed(angularMaxSpeed: float): void {
|
||||
@@ -389,7 +394,8 @@ namespace gdjs {
|
||||
this._totalSegmentTime = Math.sqrt(pathX * pathX + pathY * pathY);
|
||||
this._timeOnSegment = 0;
|
||||
this._reachedEnd = false;
|
||||
this._movementAngle = (Math.atan2(pathY, pathX) * 180 / Math.PI + 360) % 360;
|
||||
this._movementAngle =
|
||||
((Math.atan2(pathY, pathX) * 180) / Math.PI + 360) % 360;
|
||||
} else {
|
||||
this._reachedEnd = true;
|
||||
this._speed = 0;
|
||||
|
Reference in New Issue
Block a user