1,547 reputation
313
bio website
location Perth
age
visits member for 1 year, 11 months
seen 2 hours ago

11h
revised How do I define a required component on a Unity game object?
typo, unityscript
1d
answered How do I define a required component on a Unity game object?
Nov
20
revised GUI Text counter Skips numbers after a few seconds
added 14 characters in body
Nov
20
revised GUI Text counter Skips numbers after a few seconds
added 4 characters in body
Nov
20
revised GUI Text counter Skips numbers after a few seconds
added 417 characters in body
Nov
20
answered GUI Text counter Skips numbers after a few seconds
Nov
4
revised 2D sprite 360 degrees rotation according to the mouse
added 388 characters in body
Nov
4
comment 2D sprite 360 degrees rotation according to the mouse
In that case you want the angle of 'mousePosition - characterPosition'.
Nov
4
comment 2D sprite 360 degrees rotation according to the mouse
Do you want the angle from the screen center to the mouse? or from the mouse to the screen center? These are the changes you are making with this change to the formula.
Nov
3
comment 2D sprite 360 degrees rotation according to the mouse
@user54580 Please see edit clarifying what to expect from .net 4.5 implementation of Atan2(). It is unusual that you are receiving -270. What implementation of the math libraries are you using? .Net or Mono? Which version? Despite appearing to be out of range -270 is likely "correct" and can be translated to your desired range using code similar to the snippet above.
Nov
3
revised 2D sprite 360 degrees rotation according to the mouse
added 249 characters in body
Nov
3
revised 2D sprite 360 degrees rotation according to the mouse
added 2 characters in body
Nov
3
revised 2D sprite 360 degrees rotation according to the mouse
added 24 characters in body
Nov
3
revised 2D sprite 360 degrees rotation according to the mouse
added 57 characters in body
Nov
3
revised 2D sprite 360 degrees rotation according to the mouse
added 4 characters in body
Nov
3
answered 2D sprite 360 degrees rotation according to the mouse
Nov
3
comment 2D sprite 360 degrees rotation according to the mouse
@user54580 What are the values of xDiff, yDiff and angle when it gives the wrong result?
Nov
2
revised How to calculate corner marks of a rotated rectangle?
added 53 characters in body
Nov
2
revised How to calculate corner marks of a rotated rectangle?
added 53 characters in body
Nov
2
answered How to calculate corner marks of a rotated rectangle?