SamyBencherif / WPS-issue-tracker

0 stars 0 forks source link

Portals flip the vertical momentum of GameObjects through them #5

Open miyucomics opened 3 years ago

miyucomics commented 3 years ago

Describe the bug When forcing a GameObject with a Rigidbody through a portal pair, it reverses the vertical momentum. If the object was going up, it will go down, and it was going down, it will go up.

To Reproduce Steps to reproduce the behaviour:

  1. Create a portal pair.
  2. Make a GameObject go through.
  3. See it flip direction.

Expected behaviour GameObjects should retain their momentum.

Developer Machine:

Client Device:

SamyBencherif commented 3 years ago

Hello thanks for reporting this issue. I've since retired this project, and it is archived on the Unity Asset Store. However if you are hoping to fix the issue in your own game, I would suggest to negate the y-scale of one of the portals in the Unity editor. Does that change anything?

If not, I would need to reacquire the source code and could provide more info after that. The line of code in question will be in the .cs file and have a reference to the teleported object's rigidbody component (going off memory).