Quantcast
Channel: Questions in topic: "maintain"
Viewing all articles
Browse latest Browse all 19

Maintaining speed after teleportation [c#]

$
0
0
In my game i have portals that the player can walk through and i want him to maintain his speed like if he falls. How do i do that? script: public GameObject otherPortal; void OnTriggerEnter(Collider other) { Debug.Log ("something hit the portal"); other.transform.position = otherPortal.transform.position + otherPortal.transform.forward * 1; other.transform.rotation = otherPortal.transform.rotation; }

Viewing all articles
Browse latest Browse all 19

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>