corner to middle
Blitz3D Forums/Blitz3D Programming/corner to middle
| ||
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 |
| ||
Hay I stuck a nail into ma screen right on that X but I still dont have a new monitor. :P |
| ||
A NAIL?! WTF KINDA OF THINGS ARE YOU DOING!!!!! SATAN! |
| ||
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 |
| ||
thx it works |