I wanted to know how to strafe when i'm moving the camera together with an object, because this way i can use collision detection for the object.
If Upkey()=1 then Move object 10,10
If Leftkey()=1 Then X# = NewXValue(X#,WrapValue(Object Angle Y(10)-90),5)
If Rightkey()=1 Then X# = NewXValue(X#,WrapValue(Object Angle Y(10)+90),5)
If Downkey()=1 then Move object 10,-10
This is the code i'm using. I just wanted to know how to make it strafe. Or if anyone can help how to make collision detection if i'm only using a camera, that'd be great too.