Linear Velocity causing bounce. Bounciness is set to 0.
crestwoodgames
Member Posts: 191
I have scene with a floor. The floor is stationary and has bounciness set to 0. When I touch the screen in the center I spawn some block actors. The blocks fall and will sit on the ground with 0 bounce.
I also have a collision set up for the blocks themselves. After 2 or 3 stack up, they will start to bounce against each other and actually got towards the ceiling.
I have bounciness set to 0 on every actor. When I use gravity it works fine, but using gravity messes up other actors on the scene that need to move.
Any advice would be helpful.
Thanks!
Comments
Bounce? Or do you me spin off in different directions. Under Physics, tick the box Fixed Rotation.
Like Balls? Then click here! We've 100 coming soon
It bounces. So I spawn a block and it falls to the floor. Spawn another one and it lands on it, but bounces slightly. If i spawn a 3rd, it will fall on the 2nd and really bounce.
All the way back to the top.
Is the bounce set to zero in the prototype? Also make sure all the density is the same on all actors. You will still have physic effects during a collision since the actors are moveable.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Yes. I have everything set to 0 even in the prototypes. I guess its other factors I dont understand yet causing this problem. I would assumed if bounce was 0, there would be 0 bounce.
This is not the case unfortunately. I have tweaked it use the move behavior to eliminate the bounce. There needs to be an option to have items affected/not-affected by gravity.
Either way, thanks for the tips. It gave me some ideas and I think I got this working how I want.
If you want more control over gravity, don't use the Gravity setting in the Scene Palette. Instead use Accelerate Behaviors in your actors to create your own gravity. With this method you can turn gravity on and off as needed through Rules and also have different gravity values for different actors.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page