Roll() function is not making a world roll.
Code: Select all
InitEngine3D()
InitSprite():InitKeyboard():InitMouse()
OpenWindow(0,0,0,800,600,"tip",#PB_Window_BorderLess|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0),0,0,800,600,0,0,0,#PB_Screen_WaitSynchronization)
Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Textures", #PB_3DArchive_FileSystem)
CreateLight(0,$EEEEEE,4,4,2,#PB_Light_Point)
CreateMaterial(0,LoadTexture(0,"soil_wall.jpg"))
CreateCylinder(0,0.1,2,6,1,1)
CreateEntity(0,MeshID(0),MaterialID(0),-0.256,0.488,0)
CreateCamera(0,0,0,100,100):CameraProjectionMode(0,#PB_Camera_Perspective)
MoveCamera(0,0,0,12,#PB_Absolute)
Roll(0,90,#PB_World); <--- ????
Repeat
WindowEvent()
ExamineKeyboard()
RenderWorld()
FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)