Change Bounciness Attribute

I'm trying to do the following to an actor, whose bounciness is set to 0.5...

Attribute: if drop is false (drop is a game, boolean attribute)
Change Attribute: self.physics.bounciness to 0
Otherwise: self.physics.bounciness to 0.5

For some reason, there is no change during game play to the bounciness what so ever. Does this just not work?

Best Answer

  • jamie_cjamie_c ImagineLabs.rocks Posts: 5,772
    Accepted Answer

    I'm pretty sure Bounciness is not change-able at run time.

Answers

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078

    Make sure that the ground it's colliding with has a bounciness of 0

  • Night CabNight Cab Member Posts: 57

    CodeMonster,

    I checked the ground it's colliding with and yes, it's set to 0. I would think that this would be straight forward but it's just not working.

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078

    Make sure your attribute is changing it's value back to true aswell,

    If everything is set up right, then I'm not sure why it's not working.

  • Night CabNight Cab Member Posts: 57

    I'm trying different things but just can't seem to get it to work

  • Night CabNight Cab Member Posts: 57

    @CodeMonster said:
    Make sure your attribute is changing it's value back to true aswell,

    If everything is set up right, then I'm not sure why it's not working.

    I checked this as well, still no luck

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934

    Yep you cannot change bounciness at run time

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @tenrdrmer‌, thanks for the confirmation :)

  • Night CabNight Cab Member Posts: 57

    Thanks guys

Sign In or Register to comment.