Descending "Pendulum"

I have looked through some samples of a swinging pendulum and managed to reuse one of the samples.

However, what I am trying to achieve is a "descending" pendulum in the scene.

I am constraining it to self.position.x - 240(middle of the screen) &self.rotation 60*c0s(game.time)200) and every second(with timer), the self.position.y = self.position.y-20.

I also have a collision rule if the pendulum touches another actor e.g platform /enemy.

My issue is as follows;
a) after colliding with e.g platform, the pendulum seems to be retracting upwards instead of continuing down e.g y= -20.

The platform rules is set to collide with pendulum and rotate clockwise with speed -45.

What can be the reason that my pendulum is retracting upwards? Any suggestions on where I should change?

Comments

  • jay2dxjay2dx Member Posts: 611

    well maybe don't have the pendulum descend, instead have the scene rise! this way the pendulum can stay still!

  • KnightStarKnightStar Member Posts: 162

    It's possible that the pendulum is bouncing during collision. Without seeing your code it's hard to suggest but have you gone into the physics of the pendulum or ground actors and made any adjustments?

Sign In or Register to comment.