Commit Graph

43 Commits

Author SHA1 Message Date
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
dcb36a2820
Alek/smooth anim fix (#21)
* fixed smoothing velocity
2020-02-19 12:57:16 +01:00
amazingalek
0e9bfdd9ae
Alek/smooth anim (#19)
* cleanup of animation sync
* smooth animations
2020-02-18 21:39:18 +01:00
Ricardo Lopes
a1177515b3
Preserve time scale (#18)
* Create QSBBehaviour

* Preserve timescale

* Cleanup
2020-02-18 21:32:26 +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
Ricardo Lopes
6ea6586acc
Create README with development setup instructions (#10) 2020-02-16 11:34:52 +01:00
Ricardo Lopes
26f8c23c68
Unity Helper Project (#13)
* Add Unity project

* Generate asset bundles in project root

* Rename Assets directory to Assetbundles

* Add Unity project readme

* Ignore this one extra assetbundle file that Unity generates
2020-02-16 00:12:40 +01:00
amazingalek
265a06d00f
Added some missing files for QSB.Messaging
* just formatting

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

* fixed build event for message project

* :S:S:S

* fixed working dir thing

* fixed gitignore

* adding .csproj.user
2020-02-15 21:48:44 +01:00
amazingalek
522f51ea4a
Update OWML to 0.3.37
* just formatting

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

* owml 0.3.37

* fixed build event for message project
2020-02-15 20:59:18 +01:00
amazingalek
fb349c78c6
Separate messaging into its own project
* just formatting

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

* fixed build event for message project
2020-02-15 20:55:37 +01:00
amazingalek
1f119515ab
Code style / formatting improvements 2020-02-15 20:48:02 +01:00
Ricardo Lopes
c863dde8f0 Make references relative to working directory 2020-02-15 08:27:08 +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
fb11e828a3 More slight refactoring 2020-02-13 22:18:41 +01:00
Ricardo Lopes
750fd45e98 More sectory logic moved to SectorSync 2020-02-13 22:11:20 +01:00
Ricardo Lopes
50ff20a557 Move message related files to messaging directory 2020-02-13 21:53:38 +01:00
Ricardo Lopes
ef632e5ed0 Remove message type from SectorMessage class 2020-02-13 21:51:24 +01:00
Ricardo Lopes
cdb8884e45 Remove redundant sendtoall 2020-02-13 21:50:48 +01:00
Ricardo Lopes
d6e1f4c2a4 Separate handler for client and server 2020-02-13 21:48:23 +01:00
Ricardo Lopes
22b6692642 Move remaining sector logic to SectorSync 2020-02-13 21:34:01 +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
Ricardo Lopes
bcfa41b26b Simplified build paths 2020-02-13 19:58:49 +01:00
Ricardo Lopes
661f9a5611 Update project settings 2020-02-12 22:51:42 +01:00
Ricardo Lopes
9d47deed17 Uncomment debug log 2020-02-12 22:43:31 +01:00
Ricardo Lopes
c725aff7e6 Visible helmet 2020-02-12 22:42:42 +01:00
Ricardo Lopes
3d0ba354e2 Ignore sun sector 2020-02-12 22:38:06 +01:00
Ricardo Lopes
ee5b2b739e Smoooooth! 2020-02-12 22:32:16 +01:00
Ricardo Lopes
452e61ff41 More stable movement 2020-02-12 22:20:28 +01:00
Ricardo Lopes
3f50c54221 Remove prevsector 2020-02-12 22:00:42 +01:00
Ricardo Lopes
d23615f5e9 Client and server both getting sectors correctly I think? 2020-02-12 22:00:17 +01:00
Ricardo Lopes
8a2113c0f8 Shit doesn't work 2020-02-12 21:39:59 +01:00
Ricardo Lopes
19d59b9a5c Cleanup 2020-02-12 20:58:42 +01:00
Ricardo Lopes
f1d8beed02 Using messages to udpate sectors 2020-02-12 20:05:08 +01:00
Ricardo Lopes
c6dcac1236 LogToScreen 2020-02-11 20:05:02 +01:00
Ricardo Lopes
dd16c73d18 Testing send command from client to server 2020-02-11 19:56:57 +01:00
Ricardo Lopes
49ef7161ea Disable other players animations 2020-02-11 14:38:08 +01:00
Ricardo Lopes
e5a4bafd29 Show other player's heads 2020-02-11 14:14:17 +01:00
Ricardo Lopes
752f747275 Smoother movement 2020-02-11 13:57:43 +01:00
Ricardo Lopes
1c302a931f Initial commit 2020-02-10 23:07:38 +01:00