Hi again all,
From now on, I’ll keep all my questions in here to save from filling the forum with lots and lots of different things.
Todays question(s) relate to manipulating a (grand)child object.
I have set up
Entity
-Child Entity
-Grandchild entity
I have my player control script added to the Parent Entity and everything is working okay.
What I need to figure out is how to rotate the Grandchild entity from within the Parent Entity script.
The problems are, I don’t know (well I’m pretty sure I haven’t) if I’ve called the Grandchild correctly, and I seem to be getting tripped up between when to use…
var something = app.root.findByName();
and
this.something = app.root.findByName();
There is the possibility that I’m going about it completely the wrong way, I did think that using a quaternion rotation value instead of euler would be easier, and probably more efficient, but I’m completely lost when it comes to those, so I went this way.
The second problem is that I’m not sure how to get the grandchild object to rotate back to it original position when the player releases the corresponding key, but that’s another thing for another time I think.
So, could anyone point me in the right direction to fixing this?
Thanks
TheMightySpud