Quick Guide: Rotating Coin- Game Dev Series 94

S.J. Jason Liu
Jul 29, 2021

--

Objective: create a collectable rotating coin.

In this quick guide, I will create a rotating coin as collectable bonus in game.

Create a collectable is not so difficult, we have done it before.
To make a collectable more unique, let’s make it spinning in the air.

The key point would only be one thing: find out the local value.

The axis direction would be different between local and global. To make an object rotate by itself, we will need to use the local value.

In this case, we should spin the coin on x-axis.
Open script and add one line in Update().

That would make your coin start spinning as mine. You can also control the spinning speed by using a float variable.

That would be the easiest way to make the gameobject rotating.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

S.J. Jason Liu
S.J. Jason Liu

Written by S.J. Jason Liu

A passionate gamer whose goal is to work in video game development.

No responses yet