Is it a bug?
Manko
Member Posts: 20
I'm not sure it's a bug, but I've tried two ways to do this and it should work either way if I'm not mistaken.
The problem: I'm trying to change my Actors physics.density in midgame, but nothing is happening. I've tried to use the Change Attribute and simply state self.physics.density = 20 (arbitrary number, not really important), but nothing happens as I run the game. I've tried simply changing the attribute so I know I should have a good impact if I changed it, but alas no effect.
Then I tried setting up a Constrain (Density)Attribute to another attribute which I altered instead, but again without result. I checked by adding a Display Text and can confirm that it thinks that the Density is set to 20, but there is no effect game wise.
Is this a bug or do I need to update the Actor in some way to make this work?
The problem: I'm trying to change my Actors physics.density in midgame, but nothing is happening. I've tried to use the Change Attribute and simply state self.physics.density = 20 (arbitrary number, not really important), but nothing happens as I run the game. I've tried simply changing the attribute so I know I should have a good impact if I changed it, but alas no effect.
Then I tried setting up a Constrain (Density)Attribute to another attribute which I altered instead, but again without result. I checked by adding a Display Text and can confirm that it thinks that the Density is set to 20, but there is no effect game wise.
Is this a bug or do I need to update the Actor in some way to make this work?
Comments
Basically, I want to control how heavy the Actor is for collision purposes.
I was mostly curious if it was a known bug.