corner to middle

Blitz3D Forums/Blitz3D Programming/corner to middle

Panno(Posted 2004) [#1]
A corner of the squares is to always point to the center!?
what should i do ?



Graphics3D 800,600,16,1
cam = CreateCamera()
piv = CreatePivot()
PositionEntity cam,0,3,0
PointEntity cam,piv
lig = CreateLight()
For r= 0 To 19
st= CreateCylinder(4)
TurnEntity st,180,190,0
ScaleEntity st,.16,.03,.16
PositionEntity st,Sin(r*18)+0,0,Cos(r*18)
Next
While Not KeyHit (1)
UpdateWorld()
RenderWorld()
Flip()
Wend
End


Paul "Taiphoz"(Posted 2004) [#2]
Hay I stuck a nail into ma screen right on that X but I still dont have a new monitor. :P


Regular K(Posted 2004) [#3]
A NAIL?! WTF KINDA OF THINGS ARE YOU DOING!!!!!

SATAN!


big10p(Posted 2004) [#4]
This is the easy, no-maths way. It's too late here to think numbers. :)

Graphics3D 800,600,16,1 
cam = CreateCamera() 
piv = CreatePivot() 
PositionEntity cam,0,3,0 
PointEntity cam,piv 
lig = CreateLight() 

s#=360.0/20.0
For r= 0 To 19 
	st= CreateCylinder(4) 
	ScaleEntity st,.16,.03,.16 
	PositionEntity st,Sin(r*s),0,Cos(r*s) 
	PointEntity st,piv
Next 

While Not KeyHit (1) 
UpdateWorld() 
RenderWorld() 
Flip() 
Wend 
End 



Panno(Posted 2004) [#5]
thx it works