PGD Home

P0-MS4: Part 241: Infinite Universe, FTL Travel

by on Sep.17, 2017, under Astral Realms, P-0, Software and Games, Spiritus Astrum

I believe I have solved the issue with ship movement.

I now have the ability to translate the entire world in the opposite direction to the ships movement vector, while keeping the ship itself stationary. This seems to work very well, and allows the ship to travel at very high speeds while the player is walking around inside.

There are some issues with the system, mainly jitter caused by the speed of the objects moving, and some performance issues caused by the large numbers of translations that are being done.

The jitter can be solved by forcing the player to travel slower while they are close to other objects, this will mean that the objects wont move as much each “tick”, so there should be less jitter. I could also look into adding some kind of interpolation.

The performance issues may be trickier to fix. The ideal thing would be to use a separate thread, but Unity doesn’t support this. I am currently using a coroutine, which helps, but it isn’t ideal. I have read that unity 2017 may have some multi-threading capabilities, so I will postpone the optimisation until then. If no multi-threading is available, I will have to look into some other options.

 

Unity 12/09/2017 , 05:59:45 AM Unity 5.6.0f3 Personal (64bit) - P0Main.unity - P0-MS3 - PC, Mac & Linux Standalone

Unity
12/09/2017 , 05:59:45 AM
Unity 5.6.0f3 Personal (64bit) – P0Main.unity – P0-MS3 – PC, Mac & Linux Standalone

Unity 12/09/2017 , 06:04:20 AM Unity 5.6.0f3 Personal (64bit) - P0Main.unity - P0-MS3 - PC, Mac & Linux Standalone

Unity
12/09/2017 , 06:04:20 AM
Unity 5.6.0f3 Personal (64bit) – P0Main.unity – P0-MS3 – PC, Mac & Linux Standalone

Unity 12/09/2017 , 06:04:04 AM Unity 5.6.0f3 Personal (64bit) - P0Main.unity - P0-MS3 - PC, Mac & Linux Standalone

Unity
12/09/2017 , 06:04:04 AM
Unity 5.6.0f3 Personal (64bit) – P0Main.unity – P0-MS3 – PC, Mac & Linux Standalone

Unity 12/09/2017 , 08:30:49 AM Unity 5.6.0f3 Personal (64bit) - P0Main.unity - P0-MS3 - PC, Mac & Linux Standalone*

Unity
12/09/2017 , 08:30:49 AM
Unity 5.6.0f3 Personal (64bit) – P0Main.unity – P0-MS3 – PC, Mac & Linux Standalone*

 

Facebooktwitterredditpinterestlinkedinmail

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!