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 / finding a point on a sphere, 3d sin/ cos

Author
Message
wild doogy
16
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: In a Cybersuit.
Posted: 13th Dec 2007 02:45
this is an example of somthing that I was having trouble with untill I sat down and worked it out.



what it does is keeps object number one 10 units away from the origin.

this is helpfull for creating a bullet at the end of a barrel of a turret.


sorry if this post is rushed its almost 9:00 and I need to go to bed, however if someone need clarification i will repost with help
I also will try to whip up a turret game to try out.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 13th Dec 2007 19:21
This version is easier and more organised:



But it's good to see people actually sitting down and trying to work things out without going straight to forums to ask

wild doogy
16
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: In a Cybersuit.
Posted: 15th Dec 2007 23:17
what i was trying to do was have a place a turret on a spacesship. as the spaceship turns in 3d space it is hard to have the turret stay in the correct place..... even the code I made didnt work very well because it only worked strait along one of the axis
(like when the rotation is all zero the turret would be 0,0,10 or 0,-10,0 ect.) anyhow I have up with a simple solution...
USE LIMBS!!!!!!! THEY MAKE YOUR LIFE EASYER!!!! ALOT!!!


hard to get used to at the begining but worth it!!!


that code requires media but thats because its not really made to run... its just to give an idea of how it works.

I tryed to explain it as well as i could. I hope you can figure it out.

other posts:
http://forum.thegamecreators.com/?m=forum_view&t=64643&b=7
http://forum.thegamecreators.com/?m=forum_view&t=64643&b=7

Wild_Doogy

Login to post a reply

Server time is: 2024-09-27 08:22:26
Your offset time is: 2024-09-27 08:22:26