Controlling the x,y,z coords of any object programmatically
Posted: 26.05.2005, 23:24
Hi, I'm new to Celestia and would like to make a modification. I would like to be able to take control of an object (of course it's a spaceship!!) currently in the database and be able to load my own x,y,z coords in for each tick of the simulation. I suppose I would have to somehow delete, modify or ignore the trjectory info stored in memory for the object on the fly. If I do that wouldnt Celestia do the rest of the rendering, etc automatically for each new position? My problem is that I can't figure out where in th code the coords are updated for the individual objects. If I could find that part of the code, and culd somehow ID which object I was trying to control I think the rest would be pretty simple. Of course once you can do this, adding some AI to control the other ship is the logical next step.
Any pointers for me?
Btw Celestia is one of the coolest programs I have ever seen! I have wanted to write something like this for 15 years, so thanks for all the hard work and congradualtions on a truly spectaular achievement!
Any pointers for me?
Btw Celestia is one of the coolest programs I have ever seen! I have wanted to write something like this for 15 years, so thanks for all the hard work and congradualtions on a truly spectaular achievement!