How do I make a cannon for the player to shoot out of ? 3D

hello! I want to make a game where the player gets inside of a cannon and can shoot themselves into the air to collect stars in the sky and then also I would like for them to land as well. How do I do this? This is a 3D game and i made the cannon out of pre made shapes and would like the player to physically get inside of the cannon as well.

Well that’s complicated but I think what you can do is player presses the fire cannon button (Press F or whatever) you would set the player’s position, orientation and keep it fixed. Then you will need to implement a aiming mechanic so the player can aim themselves. After which you can use Rigidbody to apply force to player and shoot themselves into the air.
Hope this helps.

1 Like