Welcome, Guest. Please login or register.

Author Topic: Trigonometry Question  (Read 3879 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Trigonometry Question
« on: May 18, 2008, 07:57:42 PM »
Hello people. Just wondering how you find out the co-ordinates of a point on a circle. I've not needed to know this for a while, so i've forgotten how to do it. All examples of when I last did it have gone for some reason. I've almost got it, but its driving me mad! Its not quite working properly.

Thanks
Nick
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #1 on: May 18, 2008, 08:05:48 PM »
Yeah it isn't that difficult. I've got it to a point, but its just not right.

I have the X,Y of the centre of the circle
Radius of the circle
The angle is currently in degrees
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #2 on: May 24, 2008, 01:39:59 PM »
Thanks for this. Sorry I forgot to thank you. As I got distracted my my game actually work! :)
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #3 on: May 24, 2008, 08:37:07 PM »
I've just realised I need some more help with this. As I'm working in 3D, how do I workout a point on a sphere properly? I can work it out to a point, but it still doesn't work properly! I'm going to go crazy soon.
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #4 on: May 24, 2008, 11:28:13 PM »
Thanks. This is going to take some figuring out. I'm using this to work out the thrust angles in my space game. The difficult part is making it so it only gives angles between 0 and 180 and allow the ship to rotate on all axis. I'm also using this to workout where the nose is pointing, and the trajectory. It works in 2D at the moment, but the second you go into the 3rd dimension things go all 5th dimension :) All the angles go crazy. I'll probably spend half of tomorrow using this!
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #5 on: May 26, 2008, 02:00:29 PM »
This is getting annoying now. Basically I'm making a 3D space game. I'm new to 3D programming. I want to make my spacecraft be able to rotate on all axis (which is simple) and be able to fire thrusters in any direction (on all axis). Its this problem which is halting my project. I've got it to partially work, but it just won't go in the direction the thrusters are facing. Do you have any thoughts? You seem better at maths than me! Once I've got my head around this I'll be happy!

Nick
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #6 on: May 26, 2008, 02:47:26 PM »
I had planned it (this part of it), but as I'm only learning it didn't work. This is basically a test version of the game. Once I've got this figured out I'm planing on starting from scratch, using the knowledge gained to start properly. I'm using DarkBASIC. Its not bad actually. I'm impressed at how easy it is to get stuff working....unless it's complicated maths. Theres not much you can do about that!
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #7 on: May 26, 2008, 03:26:20 PM »
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #8 on: May 26, 2008, 03:57:58 PM »
No its not object orientated. Its just like BASIC except simple commands load and move objects around etc. It can keep track of objects. The move commands I have (you can get extra plugins) won't do exactly what I want, so I'm trying to get around them. Its an easy programming language. Within my second day of using it I had made a simple 3D landscape using a displacement map (which was grabbed from a small bitmap I made). A simple 3D object was driveable with the camera following it. It also drove over the landscape properly, well except I didn't even start the problem of it not rolling on the hills, it only pitched up n down. It was a good start I think. No help was needed on that one! Its just this mathematical problem has got me. I've been wanting to make this game for like 10 years! :-)
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #9 on: May 26, 2008, 06:45:46 PM »
I did read a lot about Blitz3D as well as DarkBASIC. For ages I was thinking Blitz, for one it looked quite easy, but also I have BlitzBASIC 2.1 for the Amiga  :-). Looking into it DarkBASIC looks the more powerful and more supported. Not having access to the forums while not registered didn't help either. I couldn't ask any questions. Ultimately I've gone with DB.

I did think about moving everything but the player. At the moment its just 3rd person. The camera is static but it follows the spaceship around. I've just been out and I now have a few new ideas to try out.
 

Offline NickTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1189
    • Show all replies
Re: Trigonometry Question
« Reply #10 on: May 29, 2008, 10:49:29 PM »
I've ordered the full version of DarkBASIC now, along with a plugin which makes this sort of thing more simple. When I get it I'll hopefully be able to cure this problem! Thanks for the help!

Nick