Some error correction
This commit is contained in:
@@ -29,9 +29,7 @@ public class CameraTracking : MonoBehaviour
|
||||
|
||||
difference[0] = player_pos[0] - camera_pos[0];
|
||||
difference[1] = player_pos[1] - camera_pos[1];
|
||||
|
||||
float smoothing_ = smoothing / Time.deltaTime;
|
||||
|
||||
camera_pos[0] += difference[0] / smoothing_;
|
||||
camera_pos[1] += difference[1] / smoothing_;
|
||||
|
||||
|
@@ -7,7 +7,7 @@ public class MovingPlatform : MonoBehaviour
|
||||
|
||||
public float width;
|
||||
public float height;
|
||||
[Range(0.1f, 8)] [SerializeField] private float speed = 1;
|
||||
[Range(0.1f, 80 )] [SerializeField] private float speed = 1;
|
||||
|
||||
private bool movingLeft = false;
|
||||
private bool movingUp = false;
|
||||
|
@@ -10,7 +10,7 @@ public class Rotation : MonoBehaviour
|
||||
public bool static_center = true;
|
||||
public bool right_rotation = true;
|
||||
public bool flipping = false;
|
||||
[Range(1f, 180f)] public float speed = 1;
|
||||
[Range(0.1f, 180f)] public float speed = 1;
|
||||
[Range(0, (float)Math.PI * 2)] public float flip_angle = 0;
|
||||
|
||||
private float angle;
|
||||
|
Reference in New Issue
Block a user