-
Example 3: How to Move Objects in a Circular Motion in Unity
So, this is a simple tutorial to show how to move a couple of spheres in a circular motion. This tute shows how to use sin and cos to get an object to rotate around a central point. As always, using Unity to show the content… So, how is this working? Well, we have a…
-
Failed to set the cursor because the specified texture was not CPU accessible
I was using a png as an icon and was getting this error message when I did a build. The solution was to change the Texture Type from “Default” to “Cursor”!
-
Example 1: Bouncing Ball In Unity
So, a simple bouncing ball; we have a position and a velocity. Each update, we add gravity to the velocity and then apply that velocity to the position to make a sphere move. If we hit the ground plane (assumed to be at 0 in the Y) then we invert the position and flip the…
-
Example 2: How To Get the Magnitude of a Vector
You’ll often need to get the magnitude of a vector and you’ll find it useful in a lot of situations when making games. Magnitude is used when you’re figuring out the distance to a destination or when you need to move to within ‘x’ distance of something or when you want to move a given…
-
Using Vectors for Position and Direction
So, imagine we have an object at point A travelling in direction B. In game dev, assuming 3D, we’ll usually use a Vector3 to represent both the point A and the direction B. A Vector3 has 3 components to the Vector; X, Y and Z and these can be used to represent a position in…
-
Time Delta
Time Delta is a core feature for any game development project. It allows objects to move around with a consistent speed and smooth movement regardless of which platform that you’re using (iOS, Android, PC, Mac, XBone etc) So, a simple Unity scene… …and a simple piece of code to go with it In the above…
-
Tracking an Object Using a Spline Camera
What is a Spline and why would I use one? “Splines are piecewise polynomials going through given data points and satisfying certain continuity conditions” or, put more simply, a Spline is a set of points used to show a curved line. Splines are often used in game dev to allow objects or cameras to move…
-
Writing Utilities: Things to Consider
I’ve written a lot of utilities over the years. Often, you’ll need to take a chunk of data and manipulate it in some way or you might need to convert graphics to a different format or extract content from an old game so it can be used in a new one. There’s a lot of…
-
Easy Website Setup with Bluehost: A Beginner’s Guide
*There are affiliate links present within this blog post Building a website has a multitude of steps and can be daunting at first, but we are here to break it down for you so it’s easy and simple to start setting up with your website. There are two important things that need to be decided…
-
Wildfire Prototype Game
So, I started working on a game I call “Wildfire”. It’s really just an exercise in putting the basic modules for a game together in one place and seeing what sort of results I can get if I optimised Unity to display 3D environments well. It’s very much a prototype, but the game currently looks…
