How do I make an object move in the direction the camera is facing?
I want to, on button press, move the possessed object into the direction the camera is facing. I got everything done (mover etc.) except the direction the mover moves the object.
I tried to play with a few sensors and tried to stamp a camera object into the scene to grab the orientation off of, no luck so far. I don't even know how to make the custom camera follow the object.
Is there a way to get the orientation of the controller sensor camera?
-
Hi,
There a few ways to do this,
First if you attach a camera to your object (surface snap the camera gadget to your object and scope into it with L1 plus X to line up its view) then you set the mover to local space and point it away from the camera, I assume you'll want to turn the camera though, so you need to take the stick output from the control sensor, and use a splitter to get just the X axis and put that wire into a rotators speed, then it will turn left and right.
Hope this helps
John -
Another thing you can do is use a puppet but delete/hide all the parts of the puppet except the pelvis, and sculpt that pelvis to be your object :)
John
Please sign in to leave a comment.