Moving a camera in context to the current angle -
Rob_Maate - 30.11.2011
Hi.
Basically what I want to achieve is to move my player's camera along a RELATIVE x/y plane, rather than along a global x/y plane.
What do I mean?
Well... the variables you set for camera movement are all in relativity to the map. What I want to be able to do is produce a value for x that's always left/right of the camera, and a value for y that's always infront/behind the camera.
I'm sure there's a fancy formula out there somewhere to achieve this, I'm wondering if anyone's ever heard of it.
This camera will have a constant downwards velocity and it will be controllable as it heads towards the ground, HOWEVER I do not want the camera to rotate its view nor do I want it to move in a 3-dimentional way
(You could liken this camera to a predator missile on CoD, it will give you an example of what i've created.)
Re: Moving a camera in context to the current angle -
Rob_Maate - 01.12.2011
bump
Re: Moving a camera in context to the current angle -
Thresholdold - 01.12.2011
Are you trying to achieve this on a COD server? So basically recreating the predator missile? Or is it for another use?
Re: Moving a camera in context to the current angle -
Rob_Maate - 01.12.2011
Completely separate use, but you could liken it to a predator missile, I want the control schematics to be the same/similar.
I'm using Norn's nCamera include to actually move the camera, the actual missile object just follows the camera.
I have achieved a missile-type thing already, it's just it always moves along a global x/y plane, rather than relative to the position it's in
Re: Moving a camera in context to the current angle -
Thresholdold - 01.12.2011
Unfortunately I did have these files that included a similar code in which you're looking for, in which you would of easily been able to edit to your liking... but our Volt-Host account was hacked and deleted in the recent weeks, so I have lost all the non-backed up files :S Sorry bro
Re: Moving a camera in context to the current angle -
Rob_Maate - 02.12.2011
Ahh no worries.
I guess imma just have to spend some time thinking about it. i've hit a mental block lol