cant position camera

BlitzMax Forums/MiniB3D Module/cant position camera

slenkar(Posted 2009) [#1]
When i use positionentity on a camera it crashes because the camera has a null matrix

positionentity calls the updatemat method which makes it crash

the same goes for rotateentity

If I try to parent a skybox to the camera it does Method Overwrite(mat:TMatrix)

which crashes with a null matrix


Volker(Posted 2009) [#2]
Code?
Did you call Positionentity for the camera before initiliazing the Graphics with graphics3d 800,600..?


slenkar(Posted 2009) [#3]
no Im trying to make a small app to demonstrate the error but I cant reproduce it so far.


slenkar(Posted 2009) [#4]
ah-ha there was a clearworld hidden in the code somewhere,

thats good though because now I can tell when an entity has been freed, if it has a null matrix