Addforce Unity 2d Code Example


Example: how to make rb.addforce 2d

public Rigidbody rb; //make reference in Unity Inspector  public float SpeedX = 0.1f; public float SpeedY = 0.5f;  rb.AddForce(new Vector2(SpeedX, SpeedY));

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer