Orbiting one object around another

Post your own tutorials, guides and demos.

Post » Mon May 04, 2009 9:32 pm

This is a response to a thread in the help forum.

Based on Mipey's pseudo code, but with a few improvements, this example shows how to make one object orbit around another. Could be useful for certain types of enemy behaviour, shmup option drones, etc.

Techniques used:
- Private Variables
- Containers
- TimeDelta

There's probably a better way - I saw a few things in the ACEs that might do this a little more elegantly.
Hope someone finds it useful.
B
2
S
2
G
3
Posts: 105
Reputation: 1,510

Post » Tue May 05, 2009 1:06 am

Thanks! Now I can stop using appalling hotspot based orbits. :)
B
5
S
2
G
4
Posts: 113
Reputation: 2,101

Post » Sat Jul 02, 2011 10:57 pm

where is the cap file and can you repost it? i'm having problems
B
1
G
1
Posts: 5
Reputation: 435

Post » Sat Jul 02, 2011 11:17 pm

of you want to make one object orbit around another, you can use Orbiter plugin

Orbiter behavior pluginshinkan2011-07-02 23:17:32
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest