18 posts
• Page **2** of **2** • 1, **2**

R0J0hound wrote:@Braus

Sure, why not? In the capx it calculates the initial speed so it rotates n degrees. It's done when the speed is >= to 0.

So you'd either figure out the number of degrees from any position to any other, or find a formula that can do that.

I got it. I just need to fix an issue with the area corresponding to the place 1 (all the restante are okay). How to check if the spinner is over this place if the first angle of this area starts at 330 degrees and finish at 30 degrees. I tried "within 60 of 30" but it nor worked.

Other question:

If I use sqrt(2*50*(360+int(random(6))*60)) I cannot apply more speed at the beginning?

**Posts:**153**Reputation:**908

B

4
S

2
"within 60 of 30" would mean 330 to 90, or 60 degrees in each direction from 30. So it probably is easier for you to just use the "is between angles" condition instead.

I don't understand your last question. The equation is:

speed = sqrt(2*deceleration*degreesToMove)

It calculates the speed needed so when using a certain deceleration it will stop after rotating degreesToMove degrees. The speed will be higher for higher values of deceleration and degreesToMove.

I don't understand your last question. The equation is:

speed = sqrt(2*deceleration*degreesToMove)

It calculates the speed needed so when using a certain deceleration it will stop after rotating degreesToMove degrees. The speed will be higher for higher values of deceleration and degreesToMove.

**Posts:**5,511**Reputation:**83,460

B

97
S

36
G

131
R0J0hound wrote:"within 60 of 30" would mean 330 to 90, or 60 degrees in each direction from 30. So it probably is easier for you to just use the "is between angles" condition instead.

I don't understand your last question. The equation is:

speed = sqrt(2*deceleration*degreesToMove)

It calculates the speed needed so when using a certain deceleration it will stop after rotating degreesToMove degrees. The speed will be higher for higher values of deceleration and degreesToMove.

I would like that the spinner starts fast (750) but just turn 5 or 7 times and stop in the angle that I defined. Is it possible?

**Posts:**153**Reputation:**908

B

4
S

2
**Posts:**5,511**Reputation:**83,460

B

97
S

36
G

131
18 posts
• Page **2** of **2** • 1, **2**

## Who is online |

Users browsing this forum: No registered users and 19 guests |