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.

AppGameKit Classic Chat / how to have an object in front of you?

Author
Message
sovr
14
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 9th Mar 2014 19:38
Hello everyone! I have been trying to figure out a simple function that I forgot to do. In a 3D game I am trying to have an object in front of you all the time while turning and moving. I know there is some trig in setting the objects position. I am trying to set the object using the setObjectPosition(1,x,y,z). Thank you in advance!

website: http://worksimpleintelligen.wix.com/parkers-apps
facebook: https://www.facebook.com/ParkersApps
youtube: http://www.youtube.com/user/mrsovr
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 9th Mar 2014 20:40 Edited at: 9th Mar 2014 20:42
i would set it to camera/player position,
same rotation, then move along local z axis in front and local y up/down,
local x left/right.
and maybe be a lower fov of 30 SetCameraFOV
if u use 1 unit=1 meter

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670

Login to post a reply

Server time is: 2024-05-02 22:26:32
Your offset time is: 2024-05-02 22:26:32