|
|
@ -8,6 +8,7 @@ public class YeetController : MonoBehaviour |
|
|
|
|
|
|
|
public float yeetVelocity = 5f; |
|
|
|
public float yeetDuration = 2f; |
|
|
|
public float windupSpeed = 0.01f; |
|
|
|
|
|
|
|
public enum YeetState { Unheld, Held, Yeeting }; |
|
|
|
public YeetState yeetState { get; private set; } = YeetState.Unheld; |
|
|
@ -71,7 +72,7 @@ public class YeetController : MonoBehaviour |
|
|
|
|
|
|
|
if(m_velocityWindup < yeetVelocity) |
|
|
|
{ |
|
|
|
m_velocityWindup += 0.01f; |
|
|
|
m_velocityWindup += windupSpeed; |
|
|
|
} |
|
|
|
|
|
|
|
Vector3 velocity = parent.transform.forward * m_velocityWindup + parent.transform.up * m_velocityWindup; |
|
|
|