Rotating Game Objects to Face a Nearby Surface

Using the Rotate on Snap feature, you can have a game object automatically orient itself to the surface to which it is snapping if you hold down SHIFT while you click the Move manipulator’s shaded squares. If you orient a set of game objects, each game object rotates individually to face the surface polygon that is nearest to it.

For example, the two figures below show the same game objects in different locations on the bus. The game objects always rotate to face the surface of the bus that is nearest to them.

 

To rotate an object to the nearest surface:

  1. Select the Modify > RotateOnSnap menu item.
  2. Select the Move manipulator.
  3. Select the game objects to rotate.
  4. Press SHIFT while you drag the Move manipulator’s shaded squares to re-position the game objects.

 

For a demonstration of how to use Rotate on Snap in the LevelEditor, or view the “Rotating Objects to Face a Nearby Surface” video, either on the GitHub site or on SHIP.