Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

jitter on collision for 2 rigid bodies

private float speed = 5f;
private RigidBody2D body;

private void Awake()
{
	body = GetComponent<RigidBody2D>();
}

private void FixedUpdate()
{
	MoveObject();
}

void MoveObject()
{
	//write movement code here
    
    body.movePosition(new Vector2(for x movement, for y movement));
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: link nuttom in c# 
Csharp :: C# infinite clock coroutine loop 
Csharp :: unity particle system playing at the wrong location 
Csharp :: c# print array 
Csharp :: c# find index element array 
Csharp :: unity3d quaternion add 90 degrees 
Csharp :: convert bytes to string and back c# 
Csharp :: find many object with tag unity 
Csharp :: how to open any file on button click in winforms 
Csharp :: c# set file invisible 
Csharp :: c# multiline string with variables 
Csharp :: remove focus from button unity 
Csharp :: overload indexer c# 
Csharp :: Codewars Multiply 
Csharp :: how to get desktop name in c# 
Csharp :: struct constructor c# 
Csharp :: object list to csv c# 
Csharp :: Create gaps / headers between variables in the unity inspector 
Csharp :: unity how to change the text on a button 
Csharp :: change array size in unity 
Csharp :: c# search on google 
Csharp :: set particle system start colour + random between two 
Csharp :: how to check the distance between two dates c# 
Csharp :: unity up arrow input 
Csharp :: wpf scrollviewer mouse wheel 
Csharp :: how to change textMesh Pro unity 
Csharp :: get name of project c# .net 
Csharp :: c# list sort by property string 
Csharp :: singleton unity 
Csharp :: compile in one single exe c# 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =