Topic: Know any useful Maratis Constants?

I only have one constant for the Maratis Editor so far, and I am looking to add more.

CENTER = vec3(0,0,0)

Got some more:

ON = true
OFF = false
RUNNING = true

Last edited by Tutorial Doctor (2014-05-18 06:35:25)

Re: Know any useful Maratis Constants?

perhaps you can also add constants for up down right and left vectors ?
it's useful for making lookat functions with quaternions

Last edited by ulbex (2014-05-26 16:02:22)

Re: Know any useful Maratis Constants?

I did create some functions like that in my customizable game script here:
http://forum.maratis3d.com/viewtopic.php?id=744

But I realized that "UP" is relative, so to make it a constant might not help someone where up is another direction, or if it is dependent on some other factor.

I do need constants for Screen coordinates though, like SCREEN_CENTER, and SCREEN_WIDTH and SCREEN_HEIGHT. I know I have to use getUnprojectedPoint() somehow.

Re: Know any useful Maratis Constants?

I see, it requires some more researches indeed

Last edited by ulbex (2014-05-23 09:56:07)

Re: Know any useful Maratis Constants?

Dunno if that is what you're asking for, but i'm using this in most of my projects,

A Color list :
so i can change light or text color with : setLightColor(Light, COLOR.purple)

and a Keylist, by pure lazyness ; for example instead of writing isKeyPressed("G"), onKeyDown("G"), onKeyUp("G")
i can just write G.press, G.down, G.up