How do I animate a cube?
I'm making a game (already in dev) where the main character is represented by a cube (this will be kept in the final product). There's a cutscene where the cube gets in a spaceship and flies off. (I've got that part sorted out) I can't find a way to make the cube rotate in a pre-made animation. Can someone help me out?
Answer by PGCW · Aug 23, 2017 at 12:29 PM
Hi I5aac1,
In Unity you can create keyframe animations in which you set the parameters of your object (say transform position and rotation) to the desired values at the desired time. All the information you need to learn how to do that is here: https://unity3d.com/fr/learn/tutorials/topics/animation.
Then, you just need to launch the animation in code or with an Animator component.
Hope this helps,
PGCW
Your answer
Follow this Question
Related Questions
How to make cartoonish cubes. 1 Answer
How can I put buttons on a Cube? 0 Answers
array index out of range 1 Answer