Skip to content

Instantly share code, notes, and snippets.

@terrehbyte
Created January 9, 2018 20:50
Show Gist options
  • Save terrehbyte/16b55d128e6a4955ff988ed1520d2a08 to your computer and use it in GitHub Desktop.
Save terrehbyte/16b55d128e6a4955ff988ed1520d2a08 to your computer and use it in GitHub Desktop.

Physics in Unity and Time Steps

Closed

Trampoline

Create an object that acts as a trampoline. Objects that fall into it should be thrust into the air using physical forces.

The amount of force that is applied to the object should be configurable.

Open

Cannon

Create a cannon that can fire an object in the direction that the game object is facing in. The cannon should launch the object with enough force to mostly fly in a straight direction for some time, but this should also be customizable in the inspector.

Make sure that the cannon can be configured in the inspector to use different prefabs to create copies to fire.

Carriage

Create a carriage that is capable of carrying the player (e.g. a ball or sphere) from one location to the next.

You may want to build out a rudimentary-looking carriage with walls to help prevent the player from rolling off of the carriage.

Wind Zone

Create an entity that applies forces to all objects within its vicinity as though wind were being blown in that area.

This is more commonly seen in 2D platforming games where wind can be seen and felt as blowing against you as you jump from platform to platform.

Note
Creating a full-fledged wind-zone with variable gusts and twists can be a much more involved effort and is out of scope for this assignment.

You are more than encouraged to make this happen though! :)

Challenge

C# Interfaces

Another major feature about the C# programming languages is the treatment of interfaces as a first-class concept that is standardized by the language.

Take some time to look at documentation on MSDN to learn about how they are used and how to form them in your own code.

Turret

Create a turret that can aim and fire projectiles at a given target such as the player.

You should be able to configure the following:

  • The maximum rate of rotation
  • The projectile that will be fired
  • The rate of fire

You may want to re-use or incorporate the logic you used for your cannon as a part of turret! The two share some functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment