![]() Then I have three box colliders, on the top, and both sides. Right now I have a mesh collider for the floor, which is a model I made, just basic hilly ground and trees and rocks and junk. I have a game where the ship flies constantly forwards, and you can move up/down/left/right, like Star Fox. Is there a way to make an object bounce away from something it collides with?Ģ. This seems difficult, because if you have a giant mesh collider on your level model, there would be no definitive "this way is away from the object", especially if you have random things popping up in the middle. It knew the player was colliding with a bomb, and would bounce the player upwards, while maintaining forwards momentum.Īnother example would be if a ship flew into a wall, it shouldn't just hug the wall, it should respond by bouncing away from it. For examples, if you remember Bomberman 64, you could bounce on bombs. So in some games you'll see the player bounce off of collision objects. I have two questions for things I want to do, and don't really understand how to make it happen.ġ.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |