• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] First person camera

Status
Not open for further replies.
Level 2
Joined
Jan 31, 2005
Messages
8
I have a feeling that this is extremely stupid, but I am making a RPG map based off of my book. I want the camera to in first person. I have figured out how to line up the camera with the hero, and angles to make it first person, but my problem is I can't seem to be able to get the camera to turn with the character. All i've been able to do is get really weird results. to line it up I just create the unit facing a certain angle, then just line the camera up with that angle. I hope someone can help me thanks
EDIT: I am really sorry I just noticed I posted in the wrong board
 
Level 1
Joined
Jan 9, 2007
Messages
4
Here is what I use under a Periodic Timer Event of around .10 seconds.

Actions
Camera - Set 'Player' camera Rotation to (Facing of (unit)) over 0.05 seconds
 
Level 12
Joined
Aug 7, 2004
Messages
875
Well to make one i'm thinking of using Pythagorem's Theorem, well it's hard to explain but if you can just imagine the angle between the two lines intersecting at the focused unit changes when the height of the line that connects a point from the ground to the postition of the camera (this makes up a whole right triangle) changes. We can just make a relationship with this, and solve the whole system. I'm making one
 
Status
Not open for further replies.
Top