|
Kanda Players 0.7.0
|
Cache a target respawn transform for PlayerOrigin continiously and keep it even though the player disconnects. This data is used primarily to let the player be spawned in the latest known location while the server is still running. More...
Inheritance diagram for CacheRespawnPointServerSystem:Public Member Functions | |
| void | OnCreate (ref SystemState state) |
| void | OnUpdate (ref SystemState state) |
Cache a target respawn transform for PlayerOrigin continiously and keep it even though the player disconnects. This data is used primarily to let the player be spawned in the latest known location while the server is still running.
Since the player head can move independently of the origin, the respawn transform is derived by ray-casting from the PlayerHead down to the first viable teleport target.