How do I fix my physics gear?


#1

How do I fix the gear I made?%E6%93%B7%E5%8F%96


#2

Hi @Liao_Verton,

that’s an interesting space! Here are some questions:

  1. could you provide us a share - link of your space so we can take a look at it?
  2. what are you trying to achieve with your gears? Based on the code you showed, do you want to simulate the turning of gears?

#3

Thank you for your reply.
I want to use a gear to drive another gear.

share - link


#4

Hi @Liao_Verton,

I’ve looked through your space, and here are some tips for achieving your gear demo:

  1. make sure that gear items have 0 friction
  2. make sure that all cylinder items have 0 friction
  3. the restrict blocks can be placed after another because they are just setting properties. (so you do not need a run parallel block for them). You should also restrict movement

Below is an example with all 3 tips combined:

Example code

32

Code in action

spin

Also keep in mind that I raised the gear-tips slightly, so they do not collide with the ground:

Show item adjustment example

adjustment

Hope that helps! Your gear-demo can be used in a lot of interesting ways. For example, you can turn one gear into a motor by applying constant force!

Show motor example


constantSpin


#5

The effect is very good, thank you!!