Commit Graph

11 Commits

Author SHA1 Message Date
AmazingAlek
797f4de50d
Alek/anim triggers (#26)
* syncing animation triggers
* suit sync
2020-02-23 18:31:38 +01:00
AmazingAlek
d7c0c06698
Alek/decoupling (#23)
* refactoring
2020-02-21 23:36:07 +01:00
Ricardo Lopes
4ec5a39aa6
WIP: Sync ship position (#22)
* Add TransformSync behaviour

* NetworkPlayer using TransformSync

* TransformSync adjustments to make it work for more than just player objects

* Rename for clarity

* Network ship being created from prefab

* Use isAuthority instead of isLocalPlayer

* Actually sync ships

* Fix offset

* Perfect offset

* Smooth damp position

* Smooth damn transform rotation

* Showing ship landing gear

* Sync ships with sectors

* Source comment for quaternion smooth damp

* just some small tweaks (#25)

Co-authored-by: AmazingAlek <alek.ntnu@gmail.com>
2020-02-21 21:51:58 +01:00
amazingalek
0e9bfdd9ae
Alek/smooth anim (#19)
* cleanup of animation sync
* smooth animations
2020-02-18 21:39:18 +01:00
amazingalek
e9a427f44d
Synchronize player animations
* just formatting

* * moved message stuff to new project
* generated .gitignore from https://gitignore.io/api/unity,visualstudio

* fixed build event for message project

* wip

* .

* .

* :S:S:S

* fixed working dir thing

* fixed gitignore

* adding .csproj.user

* .

* nothing works

* fixed gitignore for UnityProject

* wonky animation! \o/

* fixed csproj

* merge

* keeping this line solves the issue of animating local clones

* removed trigger case
2020-02-18 11:08:08 +01:00
amazingalek
1f119515ab
Code style / formatting improvements 2020-02-15 20:48:02 +01:00
Ricardo Lopes
0de3879998
Wake up sync (#2)
* Add networksync on wake up

* Attempt

* Added log to screen

* Better debug screen logging

* I'm an idiot

* Wake up client when waking up server

* Set initial sector

* Server use OnClientReceiveMessage

* Cleanup

* Prevent server from waking itself

* Pass id values as number

* Woops

* Best I can do sorry

* Revert "Best I can do sorry"

This reverts commit f3f0fbdb2e.

* Ignore a bunch of sectors earlier

* Cleanup

* Message type enum

* Some comments
2020-02-14 22:14:24 +01:00
Ricardo Lopes
2c1d0b1ea5 Move some sector logic to SectorSync 2020-02-13 21:23:12 +01:00
Ricardo Lopes
b52c1dac07 Move logic to Network Manager 2020-02-13 20:46:07 +01:00
Ricardo Lopes
e454653c29 Custom network manager configures itself 2020-02-13 20:34:51 +01:00
Ricardo Lopes
65c8943bd8 Custom network manager 2020-02-13 20:23:26 +01:00