everytime I try to set a rotatemesh on my md2 model, it gives me that error.... here's my code:
------------------------------------
Graphics3D 640,480,16,2
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
RotateEntity light,90,0,0
bob=LoadMD2( "bob.md2" )
PositionEntity bob,0,-5,50
RotateMesh bob,0,90,0
While Not KeyDown( 1 )
;movement
If KeyDown(200) Then
MoveEntity bob,0,0,1
EndIf
If KeyDown(208) Then
MoveEntity bob,0,0,-1
EndIf
If KeyDown(203) Then
TurnEntity bob,0,1.0,0
EndIf
If KeyDown(205) Then
TurnEntity bob,0,-1.0,0
EndIf
;animation
If Not KeyDown(200) Then
AnimateMD2 bob,1,0.5,9,1
EndIf
UpdateWorld
RenderWorld
Flip
Wend
End
---------------------------------------
Basicly, I'm experimenting with animated meshs, trying to make Bob look like he's walking, problem being, his mesh is turned sideways, and he kinda looks wierd going sideways while apearing to walk foward in his animation... that's why I need the rotatemesh command
------------------------------------
Graphics3D 640,480,16,2
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
RotateEntity light,90,0,0
bob=LoadMD2( "bob.md2" )
PositionEntity bob,0,-5,50
RotateMesh bob,0,90,0
While Not KeyDown( 1 )
;movement
If KeyDown(200) Then
MoveEntity bob,0,0,1
EndIf
If KeyDown(208) Then
MoveEntity bob,0,0,-1
EndIf
If KeyDown(203) Then
TurnEntity bob,0,1.0,0
EndIf
If KeyDown(205) Then
TurnEntity bob,0,-1.0,0
EndIf
;animation
If Not KeyDown(200) Then
AnimateMD2 bob,1,0.5,9,1
EndIf
UpdateWorld
RenderWorld
Flip
Wend
End
---------------------------------------
Basicly, I'm experimenting with animated meshs, trying to make Bob look like he's walking, problem being, his mesh is turned sideways, and he kinda looks wierd going sideways while apearing to walk foward in his animation... that's why I need the rotatemesh command