move object in a certain direction
I am controlling the position and orientation of my object with a 6DOF device. I want to simulate penetration inside an object when getting into the object.
So the idea I had was to store the position and orientation at the moment of touching the object (lastPOS, lastROT) and I want to continue reading the position in the Y axis from the device and re-calculate the positions of X and Z so as to show that it is moving in that direction (no matter which orientation or movement the user does with the device, I will just consider how much it moved in Y and visually show it is getting inside the object in the direction stored when touching it).
I am having problems getting a working solution, does someone has an easy way to do it?
Your answer
Follow this Question
Related Questions
How do I rotate my object back to the world's up direction whilst keeping it's forward direction? 0 Answers
Rotate camera upward. 0 Answers
Scaling animation that takes rotation into account 0 Answers
How could I make the children of an object face the direction it is moving on the y-axis? 0 Answers
OverlapBoxAll rotation 2 Answers