Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to add gravity without rb in unity

public float gravity;
Vector3 velocity;
public CharacterController controller;
void Update()
{
	velocity.y += gravity * Time.deltaTime;
    controller.Move(velocity * Time.deltaTime);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity cannot click button 
Csharp :: guicontrol text ahk 
Csharp :: stop playing audiosource 
Csharp :: c# Sum of all the factors of a number 
Csharp :: sto playing audiosource 
Csharp :: unity get distance between line and point 
Csharp :: unity stop physics 
Csharp :: unity gui button width 
Csharp :: c# multiplicate char 
Csharp :: c# trimend substring 
Csharp :: unity for loop array 
Csharp :: c# ip address to string 
Csharp :: 2d array rows and columns in c# 
Csharp :: input.getbutton unity 
Csharp :: c# datagridview center cell text 
Csharp :: mysql restore backup from multiple files 
Csharp :: run in wpf 
Csharp :: unity find deactivated gameobject 
Csharp :: C# assigning image location 
Csharp :: C# Async Function without await 
Csharp :: messagebox yes no c# 
Csharp :: dbset properties 
Csharp :: Transpose Matrix C# 
Csharp :: out c# 
Csharp :: adding to a dictionary class c# 
Csharp :: concurrent post request c# 
Csharp :: wpf rounded button 
Csharp :: Uninstall-SPSolution: This solution contains resources scoped for a Web application and must be retracted from one or more Web applications. 
Csharp :: c# Class instance 
Csharp :: unity set dictionary value 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =