Rushings Help

Learn how to create 3D worlds using the Rushings engine.

Getting Started

Rushings uses a simple code system. You create objects called entities, then change their properties.

box = new.Box()

box.Position = (0,0,0)
box.Size = (5,5,5)
box.Color = "#ff0000"

This creates a red cube at the center of the world.

Entity System

Box

Creates a 3D cube object.

Properties:

Sky

Changes the background color of the world.

Properties:

sky.Color = "#4f92ff"

Light

Creates a point light, like a lamp.

Properties:

Example:
light = new.Light()

light.Position = (0,5,0)
light.Intensity = 3

Sun

Creates directional lighting, like the real sun.

Properties:

Example:
sun = new.Sun()

sun.Direction = (1,-1,0)
sun.Intensity = 2

Camera

Controls the player's view.

Properties:

Example:
camera = new.Camera()

camera.Position = (0,5,10)
camera.FOV = 70

3D Math Basics

Vectors

Most 3D values use three numbers:

(x,y,z)
Example:
box.Position = (10,0,0)
Moves the object 10 units on the X axis.

Rotation

Rotation uses degrees:

( X , Y , Z )

Example:

box.Rotation = (0,90,0)

Rotates the object 90 degrees around the Y axis.

Directions

A direction is a vector that tells something where to move.

Direction = (1,0,0)

Means move along the X axis.