Pushing Actor "skidding" and "jiggly" when not pushed

rommaromma Member Posts: 114
edited May 2012 in Working with GS (Mac)
Hey Guys,

I have an actor (block) that my player pushes around, It has around 600 friction and 200 drag to add more "weight" (heavyness) Problem is when Im not touching the "block" it moves up, down, to the sides, no pattern likes it's skidding on the ground. I have a rule that states "when not colliding" to set LinearVel X and Y to 0, but doesn't help.

Best Answer

Answers

  • rommaromma Member Posts: 114
    That helped a lot thanks! But there is still some wiggle when I push and stop pushing, and it's not friction wiggle, its like a shake
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Yeh i found this and the shaking is annoying. I did the following;

    When Block being pushed = false
    -- Timer
    -- After 0.1 Seconds
    ----Constrain self.linear.velocityX to 0

    This will eliminate the shake, just be careful with constrains as too many 'can' hurt FPS
  • rommaromma Member Posts: 114
    Beefy,

    I have that same concept but the linear.velocity not as a constrain but as a change atrib. Any differences in this case? Yes, I avoid constains at all causes.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    I think with a change attribute it will start to shake again. I would just go with the constrain, it won't hurt performance very much, you can get quite a few in before you notice any drops
  • rommaromma Member Posts: 114
    This is odd, it got worse with the constrains. It shakes constantly now when I stop pushing it.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Shouldn't do!! We'd have to see your rules and a video of the block in action
  • rommaromma Member Posts: 114
    Here's the rule.

    www.romeromatus.com/drag.png
  • rommaromma Member Posts: 114
    When I push and let it go it starts shaking 1 pixel in all direction.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    I use similar rules but literally have it just constraining on linear velocity X, get rid of the other 2, its probably conflicting.
  • rommaromma Member Posts: 114
    Doesn't work. It still has some "jiggy with it"
  • rommaromma Member Posts: 114
    Reload the link above, I cleaned the rule. Still no work.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    I would still have it in a separate rule;

    e.g.

    when self.pushed = 0
    constrain velocity.x to 0
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Making you a demo now :)
  • rommaromma Member Posts: 114
    Cool thanks, would be nice to see it not shake on your side!
  • rommaromma Member Posts: 114
    Very nice of you. I will study this and find my solution. Thanks!
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    No worries @romma, I best get some sleep as its late here now and i have physio early tomorrow. Hope that helps and you can track down your problem.
Sign In or Register to comment.