Quantcast
Channel: Latest Questions by stockhouse50
Browsing all 4 articles
Browse latest View live

2d - Follow cursor by having object rotate around z-axis

Using the overhead view how can I move the mouse cursor around the screen while having the object rotate around the z-axis so the object faces the mouse cursor. I thought something like the code below...

View Article



Instantiating a bullet object from a 2D object that looks at mouse cursor

Hi, I have a 2D object that continuously looks at the mouse cursor. I am using an overheard view. Here is the code that I used for this: Vector3 screen_pos = Camera.main.ScreenToWorldPoint (new Vector3...

View Article

2d - Follow cursor by having object rotate around z-axis

Using the overhead view how can I move the mouse cursor around the screen while having the object rotate around the z-axis so the object faces the mouse cursor. I thought something like the code below...

View Article

Instantiating a bullet object from a 2D object that looks at mouse cursor

Hi, I have a 2D object that continuously looks at the mouse cursor. I am using an overheard view. Here is the code that I used for this: Vector3 screen_pos = Camera.main.ScreenToWorldPoint (new Vector3...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images