Moving a camera in context to the current angle
#1

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.)
Reply
#2

bump
Reply
#3

Are you trying to achieve this on a COD server? So basically recreating the predator missile? Or is it for another use?
Reply
#4

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
Reply
#5

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
Reply
#6

Ahh no worries.
I guess imma just have to spend some time thinking about it. i've hit a mental block lol
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)