I am not sure if this has been posted but i am not finding anything regarding this topic or if someone could point me in the right direction.
I am building a 2D space game like Asteroids with a Player ship, some space rocks and enemy ships, with a planet in the background(static) who has the Physics 2 behaviour
The issue I am having is with the Physics 2 behaviour (I think) where everything is bouncing all over the place when they (player, rocks and ships) collide/touch. I have tried setting the friction and restitution to 0 (from my understanding as per the wiki regarding those stats) should prevent things from bouncing or modify their affect on one another
So what I am trying to confirm is, if there is any other settings I am missing perhaps or require twerking or did misunderstand those settings so that ships don’t bounce off into the ether. I have even considered increasing the density however that works a little but it makes the objects heavy to move
Any advise or assistance would be appreciated. Thank you in advance
There is a tutorial on asteriods in the wiki Asteroids [GDevelop wiki]. I don’t know how similar it is to your target game but they have the friction at .3 and the restitution to .1
I didn’t look what they had the rocks set to.
Then in the game example Asteroids - a game example from the GDevelop game making app | GDevelop it doesn’t even look like they’re using physics.
Then this one Space asteroids - a game example from the GDevelop game making app | GDevelop is using physics, and I opened it to look and his ship friction and density are 0 (I didn’t check if he changes that in the events because I’m heading to work).
Anyway give them a look they might help you figure out something for your game.
Thanks I will have look at those examples @Lucky-j
I will update this post if anything changes
Thank you @Lucky-j , I checked, I did not think of it then by checking those stats in the games as I have seen that example before. Doh
That has resolved my issue with things bouncing off. I need to update my objects as need be now using that as an examples. Thanks again
Well I’m sure someone on here will pop in with suggestions too, I’m just not too experienced yet. I’m still at the stage of poring over examples haha.
Its working now. Thank you for the suggestion, dont know how I missed that