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));
Also in C#:
- unity cast float to int
- getcomponent c#
- get first and last item list c#
- access dic by key c#
- mvc c# w3schools
- asp.net list all files in folder
- press key run code unity c#
- how to detect if a key is pressed in c#
- call a function c#
- unity check when clicked on object
- c# dictionary literal initializer
- how to disable device guard or credential guard vmware
- how to put double quotes in a string c#
- c# get directory part of path
- object escape player unity
- raycast unity
- how to record number of times using application in c#
- how to change an int value c#
- c# reverse array
- abstract class c#
- unity load next scene
- list c#
- how to add a list to observablecollection in c#
- constructor in inherited class c#