player accelerates through floor

azelen22azelen22 Member, BASIC Posts: 3

My player actor accelerates like normal when in the air but when it hits the floor it phases through very slowly. I made sure that the player actor and the floor have collision. is there a way to turn off acceleration when they collide?

Answers

  • ToqueToque Member Posts: 1,188

    You could make game Boolean attribute call it"Collide"

    Rule if attribute Collide is false then accelerate

    Another rule.
    If actor collides overlaps with floor
    Change attribute "collide" to true

    It should accelerate but if it touches the floor it should not accelerate.

    Something to try anyways.

  • azelen22azelen22 Member, BASIC Posts: 3

    @Toque said:
    You could make game Boolean attribute call it"Collide"

    Rule if attribute Collide is false then accelerate

    Another rule.
    If actor collides overlaps with floor
    Change attribute "collide" to true

    It should accelerate but if it touches the floor it should not accelerate.

    Something to try anyways.

    Thanks for the advice but it still wants to accelerate, even with the boolean in place. I even set the players linear velocity to 0 when the collision occurs but that didn't help.

  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2016

    //

  • ToqueToque Member Posts: 1,188

    So you want object to just stop when it hits the floor? Bounce off?

  • ToqueToque Member Posts: 1,188
Sign In or Register to comment.