So lately I've been extremely focused on one element/mechanic of #OhCaptainVR : The Cannon.
In the game, the player can grab onto a cannon on the side of the boat and aim and shoot it at oncoming enemy ships. The problem is finding a good way to trigger the cannon. On one hand, I can have it shoot automatically every 1.2-2 seconds as long as it's being grabbed (like the laser gun in Rick and Morty VR), but that seems too easy. I tried adding a button to the cannon, but it seems clunky. I'm thinking of adding a lever next to the cannon, so the player can aim/turn it with one hand, and pull the lever with the other. Techy Stuff: Rather than adding a hinge joint in the center of the cannon to make it rotatable, I just used a rigidbody and locked it in position and rotation so it only rotates around the center. Then I used a VRTK rotator track grab attach on it and it worked perfectly. The one challenge is finding a good way to make it fire (mechanics wise, not script wise) Thanks for reading! - Judah Mantell President, MidnightCoffee, Inc.
Powered by
Powered by
|
About MeAside from being a game developer and CEO of MidnightCoffee, Inc, Judah teaches game design to middle and high school students. He is also a professional magician and retro game enthusiast. Categories
All
Powered by
Powered by
|