spacegrubs / primus

0 stars 0 forks source link

Shrink wave doesn't shrink. #22

Closed emanisgrand closed 4 years ago

emanisgrand commented 5 years ago

Describe the bug Shrink wave isn't shrinking. Only the isKinematic = true code is working.

To Reproduce Steps to reproduce the behavior:

  1. in camera-view branch, walk around as ThirdPersonCharacter
  2. Press X to expand the "Shrink wave" (preferably near the gas pump)
  3. Observe what happens

Expected behavior All of the objects shrink to 0.5 their regular scale

Screenshots theWave

Additional context I haven't actually dug too deep into it yet. I'll dig around it later. Relevant commit: 0313c0aeb6c148c5d05e3e78dca02896f560e2fc

emanisgrand commented 4 years ago

It turns out the wave was actually growing everything once, activating the rigidbody, and then stopped sending network data and so stopped working. I added the TPC Player to the ./Resources as a Prefab and then modified the OfflineNetwork script to instantiate the new Player_TPC prefab, and this made it so that the scripts attached to TPC get sent over the network as many times as they are called. So now everything shrinks.

ShrinkWaveNetwork

Next issue to tackle will be #19 and getting the Cinemachine Camera to work in the network as well since that is the point of #13.