Module What every thing can do
#include <macaw3d.h>
Functions
- position3d
- Puts a thing at a place.
- move3d
- Moves a thing along the way it's facing, so you can walk a camera forward whichever way it points.
- translate3d
- Moves a thing along the world's directions, whichever way it's facing.
- rotate3d
- Turns a thing to face a particular way, whichever way it faced before.
- turn3d
- Turns a thing by this much from the way it faces now.
- point3d
- Turns a thing to face another thing, and takes away any lean.
- pointat3d
- Turns a thing to face a place in the world, and takes away any lean.
- scale3d
- Sets a thing's size.
- parent3d
- Makes a thing move, turn and grow with another, like a moon going round a planet.
- pos3d
- Finds out where a thing is in the world, counting any parents.
- forward3d
- Finds out which way a thing is facing in the world, as a direction 1 unit long.
- up3d
- Finds out which way a thing's top is facing in the world, as a direction 1 unit long.
- dist3d
- Works out how far apart two things are in the world.
- hide3d
- Stops drawing a thing, and anything parented to it.
- show3d
- Starts drawing a thing again after
hide3d. - visible3d
- Finds out whether a thing is being drawn.
- texture3d
- Changes the picture a thing is covered with.
- color3d
- Paints a thing all one colour, in place of its texture.
- fullbright3d
- Stops light and shade changing how a thing looks, for lamps, the sky and glowing things.
- twosided3d
- Draws the back of each face as well as the front, for flat things seen from both sides.
- free3d
- Takes a thing out of the scene for good.
- height3d
- Finds how high the ground of a terrain is at a place, so you can keep things standing on it.
- collide3d
- Gives a thing a collision type, so
collisions and updateworld can make it bump into things. - hitcount3d
- Finds out how many things a thing bumped into during the last
updateworld(). - gethit3d
- Gets one of the things a thing bumped into during the last
updateworld(): the thing, where it touched, and the way the surface there faces. - pickable3d
- Lets rays and the mouse hit a thing, so
pick and campick3d can find it.