• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

TPS Find Terrain Camera pointing at

Status
Not open for further replies.
Level 8
Joined
Aug 4, 2006
Messages
357
[SOLVED]

So I have a working 3rd person camera and movement system. I'm planning on making a 3rd person shooter, of sorts. Now I am working on a system that finds the point of terrain that the camera is looking at, which I will later use in collisions between the ground and projectiles. My current method seems to be quite inaccurate, so I was wondering:
1) How can you get the absolute height of terrain/the camera/a unit?
2) If you have a working 3rd person shooter, how did you go about finding the intersection between the camera orientation vector and the terrain? I tried a simple loop that gradually moved a point farther from the camera, until the point's absolute z was less than the terrain's z.
 
Last edited:
So I have a working 3rd person camera and movement system. I'm planning on making a 3rd person shooter, of sorts. Now I am working on a system that finds the point of terrain that the camera is looking at, which I will later use in collisions between the ground and projectiles. My current method seems to be quite inaccurate, so I was wondering:
1) How can you get the absolute height of terrain/the camera/a unit?
2) If you have a working 3rd person shooter, how did you go about finding the intersection between the camera orientation vector and the terrain? I tried a simple loop that gradually moved a point farther from the camera, until the point's absolute z was less than the terrain's z.


http://forums.sc2mapster.com/develo...gger-how-to-target-with-mouselook-tracelines/

He is pretty dang good at explaining his way of doing it.
 
Status
Not open for further replies.
Back
Top