Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / third person camera and crosshair?

Author
Message
mususama
15
Years of Service
User Offline
Joined: 7th Jun 2009
Location:
Posted: 23rd Mar 2011 14:16
kinda stumped atm, just wondering what would be the best way to do this. i have a player object and a 3rd person camera that orbits around the player in evry direction but i also want to place a crosshair at a distance in front of the player and have it move with the camera. here is a diagram if it doesnt make sense.basically all 3 objects have to remain in alignment while rotating the centre point(player). any ideas thanks in advance.

Attachments

Login to view attachments
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 23rd Mar 2011 21:33
You might try using the pick screen command to see where the camera is looking in the 3d world, and position the crosshair object at the result (get pick vector x/y/z), then point it back at the camera with point object.

mususama
15
Years of Service
User Offline
Joined: 7th Jun 2009
Location:
Posted: 24th Mar 2011 09:30
good idea thanks. maybe i will think of something more creative than crosshairs..

Login to post a reply

Server time is: 2024-11-22 23:34:39
Your offset time is: 2024-11-22 23:34:39