Colliding with Objects Get link Facebook X Pinterest Email Other Apps - March 30, 2020 "void OnCollisionEnter ()" { Debug.log "I hit a target!" } void OnCollisionEnter () { Debug.log (collisioninfo.collider.name) } movementenabled = false Get link Facebook X Pinterest Email Other Apps Comments
transform.position - March 30, 2020 changes the position of the player you can add 'player.position' to bring it a player's position in your game ex: transform.position = player.position if applied to a main camera, the main camera snaps to the object as soon as the game starts Read more
Comments
Post a Comment