Simple Platformer with Unity — Part 1

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CoinController : MonoBehaviour { public float rotationSpeed = 100; // Update is called once per frame
void Update () {
float angleRotation = rotationSpeed * Time.deltaTime;
//rotate coin
transform.Rotate(Vector3.up * angleRotation, Space.World);
}
}
public float rotationSpeed = 100;
float angleRotation = rotationSpeed * Time.deltaTime;
//rotate coin
transform.Rotate(Vector3.up * angleRotation, Space.World);

--

--

--

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

Recommended from Medium

Tags in HTML

Everything you want to know about C static libraries

Scrum for Families!

Managing costs on Amazon Web Services

What is TestNG? Installation with Simple Example

Host Your Own Encrypted Voice & Text Server [Voice Over Internet]

Install Plugins

Hashicorp Waypoint with kubernetes on digital ocean

PNW latest

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
Maksym Postument

Maksym Postument

More from Medium

The simplest way to create a First Person Shooter! (Part 3)

Retrieve Unity Asset Bundle from S3.

Adding Shield Strength And Color Change When Damaged And Tying It To UI Sprite Sheet

Unity 2D vector movement with new input system