Hello, I'm trying to make a wall that push an object when it hits the wall and when the wall its yellow painted.
I already made a wall that when I paint the wall with the blue color, it pull an object, but I don't know how to make pushing it when its touching.
Here's the Yellow Wall Script (it works):
asked Apr 01 '11 at 11:13 PM
I think that you need to apply a force to the rigidbody to simulate a "real" push, if you use transform the push is not going to be realistic, and it will be more similar to an animation.
To apply a force to a rigidbody in the Z axis (in c# for example):
The vector force depends on what you want to do :)
answered Apr 02 '11 at 12:51 AM
I used this sugestion, but in game, the object only move in Z. The game have many wall's, and the wall push the object. i want the wall increase the distance between "bola" and the wall.
answered Apr 05 '11 at 12:37 PM