- Home /
 
 
               Question by 
               themeparkjay · Feb 15, 2013 at 10:48 PM · 
                animationcube  
              
 
              Moving a Cube
If a create a cube with an animation that moves it side to side and my player walks to the side of it, the cube goes through him. How do i make the cube push my player?
               Comment
              
 
               
              $$anonymous$$ake sure the cube has a collider and that it is not a trigger. Then add a rigidbody to the cube and increase the mass enough so that the player can't push the cube. The player might also need a rigidbody.
Answer by farrisarts · Feb 15, 2013 at 11:35 PM
use rigidbodies on either the player or the cube or both + colliders
Your answer
 
             Follow this Question
Related Questions
Can I make animations snap to a frame? 1 Answer
Simple Animation Question (Resetting animation) 0 Answers
Rolling a cube 2 Answers
Start Animation in code is not working 1 Answer
Animate a cube rotation with script only 3 Answers