Best way to approach making this game

Updated on June 13, 2017 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on June 13, 2017

Hello everyone I’m making this simple game where you need to click to release a swinging pendulum and I cant figure out how to make the pendulum swing infinitely. Currently I’m using unity physics and I have this setup:

The problem is that the pendulum stops swinging/ slows down after time. I tried setting linear and angular drag of the circle to 0, but it didn’t fix the issue. If I want to make a game where the circle swings infinitely without losing speed and where I can set its max swing angle and speed should I use physics? I thought about just defining the circle’s move path making it move along the path then setting its speed ant stuff, but then later on when I want to release the circle I want it to fall realistically along it’s trajectory. Thanks for the help 🙂

  • Liked by
1 on June 13, 2017

Does it need to use the physics system?
Do you want it to interact with colliders and such?

If not, you should just probably rotate it yourself. Shouldn’t be too difficult.
Tip: Use the Mathf.Sin function 😉


on June 13, 2017

It does not need to use the physics system. I just thought about using it to make it easier to code :). I will try to code the rotation and stuff tomorow. If anything goes wrong i will post ot here. Thanks for the response and the tip 😉

Show more replies
  • Liked by