We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I am trying to implement a situation where a 3D object in the IDE orients itself according to the values it gets from an accelerometer outside the IDE. The values are read using serial port. How do I use the rotate function to achieve this?
Thanks in advance!
Answers
the core idea is to use
map()
to match the range of the incoming data to the range of the angle you need as shown here formouseX
: