Since im basically working from scratch at this point chances are i wont have time to make all my own assets so ill be using a lot of them from the unity asset store and will hopefully have time to change them for my own at a later date, not that having placeholders is a bad thing mind you. using the scene view drag the players ship model from the model folder into the scene view i then named it Player. After that using the inspector and looking at the transform tab make sure that the position and rotation is set to 0 to so that it is in the center. next add component and add physics then rigid body and deselect gravity since its going to be in space. I then needed to add a colider which is done much the same as the rigid-body by using the add component option, physics, capsule collider which puts a sphere-like shape around the player ship, then i changed the capsule colliders size by changing its direction to the z-axis and reducing the radius and increasing its height so it resembles something like a wire frame kinder egg being around the player model in size. Alternatively using the mesh collider takes the mesh that makes up the shape of the player model and gives a much more accurate collider this is also done through the add component, physics, mesh collider option. Ill be using the mesh collider which even though it more peformance demanding the game is simple enough that it wont affect it. Make sure Is Trigger is checked and if using unity 5 and later make sure convex is also checked otherwise the mesh collider will not work correctly with the updated physics engine.

Comments

Popular posts from this blog