Bouncing Off Walls Only Works At Certain Angles?
CharlieG97
Member Posts: 52
I have 'blocks' spawning in and moving in a random direction. There are borders on all sides which they bounce off of if they collide with them. Everything is working fine except it seems that if they hit either border at a certain angle (generally <10 degrees at an estimate) they don't bounce off the border but instead stick to it and move back and forth, stuck to the edge of the border. Why is it that at a low angle they don't bounce off the wall in the same manner and what can I do to fix this?
Have put fixed rotation on the items and have put friction to 0 for the borders and the items.
Thanks!
Comments
Is the boarder in segments make sure everything is lined up to the pixel. Make sure the density of your wall matches the density of your squares too.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Their density values are the same.
What do you mean 'lined up'? The border is in 4 parts, one for each wall and they all connect with each other.
Are you on Windows or Mac?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Windows
Can you post the rules for the actor that is bouncing off the walls.
I have the constrain self.rotation to 0 because their rotation was changing on occasion when they hit the border, changing their speed and causing them to spin. The problem of them sticking to the walls occurred before this though anyway.
Change 'relative to' in the Change Velocity behaviour, from Actor to Scene, and see if that helps.
Just tried that. Still occurs