P0-P-172: Part 64: Vehicles
The vehicles can now be loaded and unloaded successfully. This took longer than I thought it would, since I had problems with the vehicles collision hull interacting with the shuttles collision hull as it was being added.
I could disable the collision hulls, but then there would be nothing to raycast against, so I couldn’t select the vehicle for unloading. I also discovered that raycasting to a child object in unity returns the transform of its parent, which would be the ship, not the vehicle.
I got all of this sorted out, and I can now carry vehicles in the cargo bay of the shuttle, and load and unload them successfully. This is a pretty major step forward, I have wanted to add this feature for some time.
I have also added the ability for the ai to enter and leave the vehicle if they are currently following the player. This was easier than I thought, since I could just copy code that I had already written for other actions.
The only other thing that I need to do is texture the vehicle.

09/12/2016 , 09:38:52 PM
Unity Personal (64bit) – P0Main.unity – New Unity Project – PC, Mac & Linux Standalone

09/12/2016 , 02:46:46 AM
Unity Personal (64bit) – P0Main.unity – New Unity Project – PC, Mac & Linux Standalone*
