Natural Ball Movement on Moving Platform

JelJel Member Posts: 319
edited November -1 in Working with GS (Mac)
I have a platform that moves left and right with the following expression 60*cos( self.Time *20%360)

My actor is a round in shape but when it lands on the platform the actor stays in one place and does not move with the platform. I have tried several different physics rules on both actors but I can't get a realistic movement of my actor with the platform.

Any help would be greatly appreciated, thanks Jel

Comments

  • JelJel Member Posts: 319
    Hi TSB,

    I have friction set to 3 on both actors but changing it doesn't seem to make any difference. I've been messing around with a test project and it seems that having moveable set to true on the platform makes the left right movement of the ball much more realistic but the ball then falls through the platform.
  • JelJel Member Posts: 319
    To clarify a bit more interpolate or cos movements on the platform don't seem to work well when having the ball move in a realistic way.

    If I set the platform to move with move behaviours the ball/colliding objects move in much better way but now the ball seems to slowly sink into the platform.
  • JelJel Member Posts: 319
    My bad the sinking was due to density on the platform being to low.
  • ORBZORBZ Member Posts: 1,304
    if an actor is not marked as "Movable" and you move it via interpolate or constraining the x/y attributes manually then the physics engine really has no idea that the actor is moving and so computations against the actor are considered as if the actor has no innertia.

    that's why when you use the "move" attribue the behavior is correct and when you use constraints the behavior is wonky.

    also, fyi collisions are only possible when at least one of the actors is "Movable" because the engine is optimized to ignore when two non-movable objects intersect. i.e. teleporting objects via manual x/y relocation does not trigger collision detection UNLESS one of the objects involved in the collision is "Movable."
Sign In or Register to comment.