예제 #1
0
 /// <summary>
 ///     External class keeps track of the physics duplicates for clean, consistent physical passthrough
 /// </summary>
 public void FixedUpdate()
 {
     //if (GlobalPortalSettings.PhysicsPassthrough)
     //_headInPortalTrigger = false;
     if (NearTeleportables.Count >= 1 || ((Portal)Target).NearTeleportables.Count >= 1)
     {
         PhysicsPassthrough.UpdatePhysics();
     }
 }
예제 #2
0
 /// <summary>
 /// External class keeps track of the physics duplicates for clean, consistent physical passthrough
 /// </summary>
 public void FixedUpdate()
 {
     //if (GlobalPortalSettings.PhysicsPassthrough)
     _headInPortalTrigger = false;
     PhysicsPassthrough.UpdatePhysics();
 }