# Gravity Angle with physics objects?

Get help using Construct 2

### » Sat May 12, 2012 7:47 pm

I'm trying to rotate a layout or layer while maintaining the gravity angle the same. This is with physics objects. My example would be that i have a rectangle with a ball on top of it and as i rotate the layout or layer the ball should roll off and its not. Does anybody have any examples on how to do this?
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

### » Sat May 12, 2012 8:07 pm

The best way to do this is to turn off the real gravity of your physics objects. Then add them to a family, and apply a force at angle on this family. The force should be the intensity of gravity you want, and the angle should be the gravity angle.
Hope this makes it clear for you.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,455

### » Sat May 12, 2012 8:19 pm

Thanks, i would have never thought of that.
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

### » Sat May 12, 2012 9:49 pm

Worked, but since i can't set the orgin of rotation it will not work for what i'm doing.

I'm going to use the following so i can rotate all objects around a point.

x = cx + r * cos(a)
y = cy + r * sin(a)
B
17
S
9
G
7
Posts: 249
Reputation: 6,922