Learn how to create 3D worlds using the Rushings engine.
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.
Creates a 3D cube object.
box.Position = (0,5,0)
box.Size = (10,1,10)
box.Rotation = (0,45,0)
box.Color = "#00ff00"
box.Transparency = 0.5
Changes the background color of the world.
sky.Color = "#4f92ff"
Creates a point light, like a lamp.
light = new.Light() light.Position = (0,5,0) light.Intensity = 3
Creates directional lighting, like the real sun.
sun = new.Sun() sun.Direction = (1,-1,0) sun.Intensity = 2
Controls the player's view.
camera = new.Camera() camera.Position = (0,5,10) camera.FOV = 70
Most 3D values use three numbers:
(x,y,z)
box.Position = (10,0,0)Moves the object 10 units on the X axis.
Rotation uses degrees:
( X , Y , Z )
Example:
box.Rotation = (0,90,0)
Rotates the object 90 degrees around the Y axis.
A direction is a vector that tells something where to move.
Direction = (1,0,0)
Means move along the X axis.