Most of this was relatively simple to learn and implement within Unity. Importing all of my assets was simple enough, although some of the 3D meshes I had deleted within the scene in Autodesk Maya reappeared when the scene was imported into Unity. I wasn't sure how to stop this happening so i just sifted through the scene once in Unity and deleted these unwanted objects. For most of the objects in the environment, mesh colliders were good enough to create basic collision detection. Although, for the skateboard I used a wheel collider and a mesh collider caused it to half sink through other meshes in the environment. Once all of the 3D assets were imported and collision detection was set up, I parented the skateboard to a camera for the player's perspective and applied a basic movement script to the skateboard. To get the skateboard to rotate instead of strafing left to right across the screen I had to edit the movement script (with some outside help seeing as I'm not a programmer) to allow the player to use the mouse to rotate the skateboard. The skateboard doesn't rotate perfectly, but it's good enough for now. After completing all of this, I created the executable file for a playable version of this game.
Below is a screenshot of the skate park game environment:
No comments:
Post a Comment