Questions tagged [restitution]
9 questions
3
votes
0 answers
Matter.js Bodies bouncing even with restitution set to 0
I am making a game called Perfectly Balanced (it's based off an iWatch game) and I'm using Matter.js
The problem is that when you press space/click to drop the body, if there are already some bodies on the ground, they bounce and fall apart.
I've…

LuisAFK
- 846
- 4
- 22
3
votes
1 answer
SKPhysicsBody with restitution 0 still bounces
I'm am trying to drop the SKSpriteNode with constant speed and without bouncing.
Here is the code I'm using:
SKSpriteNode *floor = [SKSpriteNode spriteNodeWithColor:[UIColor clearColor] size:CGSizeMake(self.size.width, 1)];
floor.physicsBody =…

aumanets
- 3,703
- 8
- 39
- 59
2
votes
2 answers
SKSpriteNode bouncing when it shouldn't
I'm developing a 2D game with the new API Sprite Kit. The problem is that although setting the restitution of a sprite node to 0, it bounces a little bit. How can I totally disable the bouncing?

Marti Serra Vivancos
- 1,195
- 5
- 17
- 33
2
votes
2 answers
Applying Coefficient of Restitution in a collision resolution method
I have a collision resolution method in my physics engine, that goes like this:
Vector2 n1pos = n1.NonLinearSpace != null ? n1.NonLinearPosition : n1.Position;
Vector2 n2pos = n2.NonLinearSpace != null ? n2.NonLinearPosition : n2.Position;
Vector2…

RCIX
- 38,647
- 50
- 150
- 207
1
vote
1 answer
Restitution not working on ANYTHING in SpriteKit
I have tried creating bitmask categories, setting all restitution values to 1 and everything else under the sun including running the application an a device and it still is not working at all. After setting an SKSpriteNode with retitution 1 to hit…

Isaac Dragon
- 61
- 1
- 4
1
vote
0 answers
border restitution/bounciness not working (swift programming)
Excuse the naming conventions and the way I indent and create new spaces in my code I know it's not normal but i'm weird D:
Anyway I set my restitution to 1 and it didn't seem to work so I even tried 1.0 to see if I had to do it that way and it…

Kenny Kiriga
- 39
- 1
- 5
0
votes
0 answers
Restitution only for specific objects in SpriteKit
I'm currently making a football (soccer) game using SpriteKit, but I've run into a little problem. When the characters (players) jump, I don't want them to bounce when they hit the ground after (that looks really weird and isn't very realistic).…

Frævik
- 7
- 3
0
votes
1 answer
Box2D has "restitution" been removed?
I am not a big user but find BOX2D for creating the basis for realistic led light effects. Iteration time is not a big issue because I am not trying to achieve scene realism. For some time I have had a programme running to generate a fountain…

Going Along
- 1
- 1
0
votes
1 answer
How to implement restitution coefficient into a simple physics engine?
I am writing a simple 2d physics engine that supports circle-circle collision and i can't figure out how to retrofit my collision resolution method to add restitution. How is a restitution coefficient property implemented in physics engines?

RCIX
- 38,647
- 50
- 150
- 207