Unity Learn home
View Tutorial Content

Make objects pushable

Tutorial
Beginner
+10 XP
15 Mins
(23)
Overview
Summary
Sokoban puzzles require the player to push obstacles around a grid. In this tutorial, you’ll learn the calculations required to make one moving object appear to push another across Clive’s crypt so that you can script this functionality and customize it as you continue to develop this level.
By the end of this tutorial, you’ll be able to do the following:
  • Write a visual script that calculates and adjusts a GameObject’s position.
  • Include a visual script inside another.
  • Given a desired result, code an appropriate visual script.
Select your Unity version
Last updated: December 29, 2022
2021.3
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
Language
English
Make objects pushable