Make an object rotate around other from the impact point?

Get help using Construct 2

Post » Wed May 18, 2016 10:09 pm

So.. I have an 'static' object just spinning (I will call it earth for better understanding), and other that goes on its direction (comet).
I have this math that almost do what I want:

When the comet hits earth:
Set X to CenterX + cos(angle) * dist
Set Y to CenterY + sin(angle) * dist

But with this method, the comet don't start to rotate around earth from the impact point, but it teleports to the angle that earth is facing...

How can I make it work properly?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Thu May 19, 2016 3:31 pm

Bump
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Thu May 19, 2016 6:40 pm

dont know if its exactly this what you want

https://dl.dropboxusercontent.com/u/231 ... earth.capx
B
22
S
4
G
3
Posts: 61
Reputation: 2,683

Post » Thu May 19, 2016 6:50 pm

Tuiii wrote:dont know if its exactly this what you want

https://dl.dropboxusercontent.com/u/231 ... earth.capx

Hey man, that's exactly what I need!
Thank you! :)
B
20
S
4
Posts: 385
Reputation: 2,270


Return to How do I....?

Who is online

Users browsing this forum: Clark Thy Lord and 1 guest