defold / examples

Defold examples for the Learn section of the site
https://www.defold.com/examples/
109 stars 28 forks source link

Add look rotation example #55

Closed aglitchman closed 3 weeks ago

aglitchman commented 3 weeks ago

The point of the example is to show how to use Defold API to write your own math function. The math function is look rotation, that is used in probably 95% of the 3D examples for the Unity engine. Obviously, when a person comes to Defold, they may have knowledge from Unity / Godot, and will look for familiar functions in Defold.

In this demo you can rotate the camera by holding down the mouse button. And also switch "targets" by pressing any key.

image