2d object look at object
C#
Vector3 dir = enemy.position - transform.position;
float angle = Mathf.Atan2(dir.y,dir.x) * Mathf.Rad2Deg;
transform.rotation = Quaternion.AngleAxis(angle, Vector3.forward);
Also in C#:
- Title
- parsing string to int without format exception c#
- Category
- C#
- Title
- switch case c# contains
- Category
- C#
- Title
- unity mobile controls
- Category
- C#
- Title
- wpf restart application c#
- Category
- C#
- Title
- how to track a branch on github
- Category
- C#
- Title
- c# list to string join
- Category
- C#
- Title
- c# stop loop in method
- Category
- C#
- Title
- unity how to add a bullet impact force
- Category
- C#
- Title
- unity load text resources from subfolder
- Category
- C#
- Title
- unity detect any key
- Category
- C#
- Title
- round vector3 unity
- Category
- C#
- Title
- csharp datetime string format
- Category
- C#
- Title
- Unity C# add slider into editor
- Category
- C#
- Title
- c# generic abstract method
- Category
- C#
- Title
- c# declare an int list
- Category
- C#
- Title
- c# console delay
- Category
- C#
- Title
- ubuntu: how to open the terminal from c#
- Category
- C#
- Title
- sqlite connection c#
- Category
- C#
- Title
- list contains type c#
- Category
- C#
- Title
- c# get last character of string
- Category
- C#
- Title
- formula calculating distance coordinates latitude longitude c#
- Category
- C#
- Title
- c# pull request
- Category
- C#
- Title
- how to create a variable in C#
- Category
- C#
- Title
- unity particle system color
- Category
- C#
- Title
- unity clamp rotation
- Category
- C#
- Title
- sum of digits in c#
- Category
- C#
- Title
- c# read char
- Category
- C#
- Title
- c# type of generic is string
- Category
- C#
- Title
- c# empty IEnumerable
- Category
- C#
- Title
- how to hide and show object in unity script
- Category
- C#
- Title
- decalre an int list mvc
- Category
- C#
- Title
- if entity.is Transient() Update Mvc 5 c#
- Category
- C#
- Title
- microsoft.portable.csharp.targets was not found vs 2019
- Category
- C#
- Title
- month number to text in c#
- Category
- C#
- Title
- C# Into To Tring Debug.Log
- Category
- C#
- Title
- .net core identity get user id
- Category
- C#
- Title
- public enum c#
- Category
- C#
- Title
- c# download string url
- Category
- C#
- Title
- application variable in asp.net core
- Category
- C#
- Title
- c# add to array
- Category
- C#
- Title
- c# compile into an exe
- Category
- C#
- Title
- c# array inst working
- Category
- C#
- Title
- asp.net render control to string
- Category
- C#
- Title
- count the number of notes in a given amount c#
- Category
- C#
- Title
- how to change text to bold through script unity
- Category
- C#
- Title
- c# string list contains
- Category
- C#
- Title
- C# webclient immitate browser
- Category
- C#
- Title
- convert int to double c#
- Category
- C#
- Title
- unity how to set an objects postion x,y,z
- Category
- C#
- Title
- what is the and in c#
- Category
- C#
- Title
- c# string code ascii
- Category
- C#
- Title
- how to detected WindowCloseEvent in other window wpf
- Category
- C#
- Title
- c# append to file
- Category
- C#
- Title
- mailkit send attachment
- Category
- C#
- Title
- find month number from date C#
- Category
- C#
- Title
- create new object from generic c#
- Category
- C#
- Title
- query associative table ef6
- Category
- C#
- Title
- c# check if string is in array
- Category
- C#
- Title
- parsing object from text file c#
- Category
- C#
- Title
- c# tab character
- Category
- C#
- Title
- unity getcomponent
- Category
- C#
- Title
- zoom gedit
- Category
- C#
- Title
- how to create and trigger a function unity animation events
- Category
- C#
- Title
- C# resize window without title bar
- Category
- C#
- Title
- traversing an enum c#
- Category
- C#
- Title
- response redirect new tab
- Category
- C#
- Title
- c# stringbuilder
- Category
- C#
- Title
- how to update modal class using dbfirst in asp.net core
- Category
- C#
- Title
- text variable type unity
- Category
- C#
- Title
- c# silent execute exe
- Category
- C#
- Title
- open udp socket c#
- Category
- C#
- Title
- using mediamanager how to play mp3 files
- Category
- C#
- Title
- c# replace foreach with lambda
- Category
- C#
- Title
- cannot convert string to generic type c#
- Category
- C#
- Title
- how to edit a c# list
- Category
- C#
- Title
- float to int c#
- Category
- C#
- Title
- membership get user id
- Category
- C#
- Title
- asp.net mvc 5 codefirst dropdown list
- Category
- C#
- Title
- how to find the type of a object c#
- Category
- C#
- Title
- .net core cli
- Category
- C#
- Title
- wpf binding ancestor codebehind
- Category
- C#
- Title
- if statement conditions c#
- Category
- C#
- Title
- unity get number of child objects
- Category
- C#
- Title
- count number of enum values C#
- Category
- C#
- Title
- c# tuple access
- Category
- C#
- Title
- git set origin
- Category
- C#
- Title
- how to switch scenes unity
- Category
- C#
- Title
- c# write to console
- Category
- C#
- Title
- unity add component
- Category
- C#
- Title
- Exception thrown: 'System.FormatException' in mscorlib.dll dates
- Category
- C#
- Title
- c# zip a file
- Category
- C#
- Title
- unity change the source image or image
- Category
- C#
- Title
- C# check if is first run
- Category
- C#
- Title
- how to set a gizmo color unity
- Category
- C#
- Title
- message authorization has been denied for this request. fiddler
- Category
- C#
- Title
- unity resources load
- Category
- C#
- Title
- how to crouch in unity
- Category
- C#
- Title
- first person camera controller unity
- Category
- C#
- Title
- block wapalyzer from detecting codeigniter
- Category
- C#
- Title
- c# build string out of list of strings
- Category
- C#