.
How do you use types for 3D objects
Blitz3D Forums/Blitz3D Beginners Area/How do you use types for 3D objectsThe 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.
Graphics3D 800,600 Cam = CreateCamera() MoveEntity Cam,0,2,-5 X.obj = New obj x\Entity = CreateCube() While Not KeyDown(1) UpdateObj() RenderWorld() Flip Wend Function UpdateObj() For x.Obj = Each Obj X\Yaw = X\Yaw + 1 RotateEntity X\Entity,x\pitch,x\yaw,x\roll Next End Function Type Obj Field Entity% Field Pitch# Field Yaw# Field Roll# End Type