-
relative 3D positioning…
I’m trying to make a butterfly fly around the screen, and I’ve been pretty successfull in programing a realistic wing flapping motion, but I’m having one little problem.
See, everytime a butterfly flaps its wings, they rise a little bit, as the draft pushes them upwards, so I tied the rotation of the wings to the the yPosition element of both wing layers and the body layer. Unfortunately, when I turn the butterfly sideways, so that you’re looking down on it, everytime the butterfly flaps, the butterfly still moves “up” relative to the screen, which, from that perspective, makes it moves sideways.
How can I make it so that, with every wing flap, the butterfly is pushed “upward”, relative to itself, and not the direction of the screen, so that when you’re looking at it from overhead, it just comes toward you a little, instead of moving sideways.
I’ve tried just having it be still, and then moving the camera around, but let’s face it, camera movement is a PAIN IN THE ASS.