mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
Auto stash before merge of "main" and "origin/main"
This commit is contained in:
1 parent
edcc7df8f6
commit
39c2ec94da
10 files changed
+394
-64
No files matched your search
@@ -40,6 +40,7 @@ public class Bird : MonoBehaviour
|
||||
Vector3 targetVelocity = new Vector2(horizontalMove, Mathf.Sin(elapsed * frequency) * deltaY);
|
||||
// And then smoothing it out and applying it to the character
|
||||
m_Rigidbody2D.velocity = Vector3.SmoothDamp(m_Rigidbody2D.velocity, targetVelocity, ref m_Velocity, m_MovementSmoothing);
|
||||
|
||||
}
|
||||
else {
|
||||
m_Rigidbody2D.velocity = Vector3.zero;
|
||||
|
||||
Reference in new issue
Block a user