How can i rotate an object around another object

Get help using Construct 2

Post » Sun Aug 26, 2012 10:51 am

Hello,

I would like to know how can i rotate an object around another one.

I tried to do it with physics, it works very well but the first object doesn't change its angle corresponding to its position around the second object.

How can i do that?

Thank you
B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Sun Aug 26, 2012 6:46 pm

Something like this - it could apply to physics objects too, I just used the bullet as a quick demo

http://www.johnnysix.net/games/Grav16/

http://www.johnnysix.net/games/Grav16/Grav16.capx
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Aug 26, 2012 10:18 pm

Rotate around another objectshinkan2012-09-17 10:43:05
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Mon Aug 27, 2012 12:35 am

Shinkan's example is nice - try turning the red block into platform/8 direction, the green box follows it perfectly.

Great example - and a nice maths lesson.
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Wed Aug 29, 2012 9:43 pm

It's working well.

Thanks a lot!!

B
14
S
4
G
2
Posts: 190
Reputation: 3,938

Post » Mon Sep 17, 2012 9:52 am

[QUOTE=shinkan] Rotate around another object[/QUOTE]

Broken Link
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Mon Sep 17, 2012 10:43 am

Should be working now.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Mon Sep 17, 2012 11:18 am

@shinkan
You're always a great help!

Thank you
B
21
S
5
G
5
Posts: 16
Reputation: 5,421


Return to How do I....?

Who is online

Users browsing this forum: BACLog, Kagubro and 18 guests