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 / Positioning a fixed object to a world position

Author
Message
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 2nd May 2017 19:40 Edited at: 2nd May 2017 19:45
I have the OBJ1 fixed to a parent object. I have also the OBJ2 which is not fixed to any parent object.
I need to position OBJ1 to the position of OBJ2 but I don't know how
Any help will be appreciated

EDIT: OBJ2 is the AppGameKit Camera
29 games
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 2nd May 2017 23:06
The example below is how I generally go about this.



Instead of the cone you need to get the position and angle of the camera.

Hopefully it makes sense.
Hover Car Race Challenge! - available now on Google Play
Invaders of the 29th Dimension - available now on Google Play
Find me on indieDB
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 3rd May 2017 20:50 Edited at: 10th Feb 2018 18:30
Thank you for your response but it is not what I am asking for. My fault that I didn't explain correctly.
Please take into account the following image:



I need to position the object1 on the position of the camera, but object1 is fixed with the red sphere and I don't know how to translate from the world coordinate system to the local system of the red sphere

Login to post a reply

Server time is: 2024-09-30 03:27:34
Your offset time is: 2024-09-30 03:27:34