3D

Kohaku's picture

Distance based hiding

0
No votes yet
sync on
sync rate 30
 
`Place somewhere at the start
Global DH# : DH# = 15
 
make object cube 1, 10
 
do
 
	if upkey()
		move camera 1
	endif
 
	if downkey()
		move camera -1
	endif
 
Kohaku's picture

Rotate object to point

0
No votes yet
function rotateObjectToPoint(obj, turnSpeed, x, y, z)
 
	//store old rotate
	oldXa as float
	oldYa as float
	oldZa as float
	diff as float
 
	oldXa = wrapvalue(object angle x(obj))

Syndicate content