Skip to content Skip to sidebar Skip to footer

C# Unity Velocity Code Example


Example: unity how to set rigidbody velocity


Vector3 velocity = new Vector3(10f/*x*/, 10f/*y*/, 10f/*z*/);
GetComponent<Rigidbody>().velocity = velocity;

Post a Comment for "C# Unity Velocity Code Example"