Skip to main content
4 events
when toggle format what by license comment
Nov 13, 2018 at 20:44 history edited Draco18s no longer trusts SE CC BY-SA 4.0
Corrected code indentation
Jun 8, 2018 at 13:44 comment added Prometheus The first line in the code creates a vector 3 based on the main camera forward direction. Than you simply apply this to your component via LookAt, which will force your object to look at the same direction your camera does (which is controlled by your mouse input). At the bottom you simply add relative the forward, backward, left, right attributes.
Jun 8, 2018 at 9:41 comment added Isy S Could you add some commenting on that code? I'm not quite understanding where the camera look function is.
Jun 7, 2018 at 16:27 history answered Prometheus CC BY-SA 4.0