interpolate actors to orbit each other
![slev](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
im making a space based game and i want objects to hit each other and when they do orbit one another i want them to have a geostationary orbit (as the main object rotates the smaller one orbits around it in the same place).
is this possable to do with interpolateing the smaller objects possition in relation to the large ones rotation??
cheers
is this possable to do with interpolateing the smaller objects possition in relation to the large ones rotation??
cheers
Comments
then in the actor you want to orbit around in the circle constrain
self.Position.X = 120*cos(self.Time*100%360)+planetX
self.Position.Y = 120*sin(self.Time*100%360)+planetY
planet x and y at the end of those expressions are the 2 real attributes you made, and the 120 represents the distance from the center planet your orbiting around
http://gamesalad.com/forums/topic.php?id=20867
thanks for explaining this. Rob, am I correct in thinking your project is for a web app, rather than an iphone app? It appears to have a really useful ability to use the attributes of other actors, that I can't find in my project.
cheers
Matt
Am I missing something?
Once an actor is placed in the scene (and unlocked) it can have direct access to all the events and variables (attributes in GS) of the scene/game/whole shooting match!!
Simply drag an actor to the scene window, double click then click to unlock and you will find the attribute browser now has a new entry 'current scene' from where you can drill down to all sorts of stuff and directly access other actors attributes.
cheers
Matt