Moving platforms in Unity

  1. Statement 1
    if the switching bool is false then moveTowards target b position, else if switching is true, moveTowards target a position.
  2. Statement 2
    if the current position of the platform is equal to that of the targetB position then switching is true, else switching is false.

--

--

--

Integration support and part-time game developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Debugging Today Extensions in iOS

SSH Git Commands Cheat Sheet Simple Guide

All you need to know about prefetching in Django

Motoko, the Internet Computer’s Native Language, Turns Two

Dependency Injection in a Nutshell, from Object-Oriented view

Clean Up Docker Resources — Images, Containers, and Volumes

Animating sprites in Unity

My favorite free courses to learn Game Development for Beginners in 2022

best free Game Development Courses for Beginners

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Kirwan

Daniel Kirwan

Integration support and part-time game developer

More from Medium

Unity 2D vector movement with new input system

2D Mobile Adventure Game Complete!

Creating Coin Distraction Feature in Unity (Part 3: Send AI to Coin)

3rd Person Follow Virtual Camera Explained in Unity’s Cinemachine