Maths - cube entitys in a circle?

Blitz3D Forums/Blitz3D Programming/Maths - cube entitys in a circle?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Like this?

Graphics3D 640,480,16,1

Global CamPiv = CreatePivot()
Global Camera = CreateCamera( CamPiv ) : PositionEntity Camera, 0,0,-100 
Global Dome = CreateSphere() : ScaleMesh Dome, 50,50,50 : FlipMesh Dome : EntityColor Dome, 64,64,128
Const DomeRadius = 50

;place stars
Star = CreateCube() : ScaleMesh Star, .25,.25,.25
For l = 1 To 150
	tmp = CopyEntity( Star )
	RotateEntity tmp, Rand(-80,-10), Rand(-180,180) , 0
	MoveEntity tmp, 0,0,DomeRadius-1
Next
FreeEntity Star


While Not KeyDown(1)

	TurnEntity CamPiv, 0,1,0

	RenderWorld()
	Flip

Wend