I renamed the ship model to "player"
Then I applied a rigidbody component to the player object by doing
Add Component > Physics > Rigidbody
And then I had to add some sort of a collider to the player. So I originally added a capsule collider that is like a cage that you can shape around the player and it is very performance friendly but not as accurate. So I deleted that and added a Mesh Collider which automatically takes the models mesh and turns it into a collider. The mesh was very accurate but performance heavy so I used a premade mesh and dragged it to the mesh collider and it replaced the current mesh.
I then check off the "Convex" box and hid the mesh renderer so now I can see the collider.
Then I added the ship engines to the ship and it's pretty much two particles that appear at the back of the ship to give the illusion that it has an engine.
From the side it looks a bit weird
But from the top it looks fine :)
Tomorrow I will be continuing the tutorial.
No comments:
Post a Comment