unity rigidbody addforce
rb = GetComponent<Rigidbody>();
rb.AddForce(new Vector3(1.5f,1.5f,1.5f));using UnityEngine;public class ExampleClass : MonoBehaviour
{
public float thrust = 1.0f;
public Rigidbody rb; void Start()
{
rb = GetComponent<Rigidbody>();
rb.AddForce(0, 0, thrust, ForceMode.Impulse);
}
}
Also in C#:
- c sharp list length
- c# input integer
- c# Sleep
- How to get number of months between 2 dates c#
- c# get list of all class fields
- c# try catch error
- take screenshot in c#
- vb.net check if datatable has rows
- start up file in asp.net core
- foreach c#
- c# console delay
- unity rigidbody addforce
- C# extend array
- c# how to use inovke
- C# .net core convert to int round up
- c# string to character array
- sticky footer bootstrap 3
- unity left mouse button
- unity multiply xyz of two vectors
- asp.net c# write string to text file
- c# repeat string x times
- reference to gameobject in different scene unity
- c# object clone
- rotatearound unity