Make my ball balance on my orbiting object and not roll away?
Though my object uses physics behaviour, and the Orbiting behaviour is not based on physics, so anytime it’s on the orbiting platform, it rolls away
Can you explain it in more detail? Does the platform object have physics behaviour? How is it moving without using physics?
If the orbiting object has physics, then you could add a joint between the ball and platform.
Keep in mind, using non-physics actions to move an object with physics behaviour is never a good idea.
The extensions involved
Physics behaviour: the player and the orbiting object(a plate) has this behaviour
The Orbit Extension: on another object(a round object which also has the physics behaviour) that the plates(3 to 7 of them) orbits around
I know that using non-physics actions to move an object with physics behaviour is not a good idea but is there a way I can prevent the player(a round object) from rolling away from the plate?
This is an image of the way they look like, They all have physics behaviours but the Orbiting Extension is a non physics behaviour and I think I understand that it is because of that, that the player doesn’t stay on the plates while the plates are orbiting, how do i fix it that it stays on the plates while orbiting? Note: I can’t change it to the platformer behavior anymore.
In the physics behaviour settings, you could increase the friction on the platform. I was going to suggest increasing the values of angular dampening and linear dampening on the player object, but that would also affect it on other surfaces. I’m not 100% sure if that would work when the platform moves.
An alternative is to create a distance joint between the player and platform when the player is on the platform and remove it when a player action happens.
Ive tried increasing the friction to a large number(15 to 15K) but nothing happened, and I don’t know how to set up the distance joint
Have you checked the GDevelop wiki on physics joints?
You can also search GDevelop examples with the term “physics”.
Scroll down on the results (past the clickable images) and you’ll find links to physics joint demos and to physics joint settings demo.
Click on “Create game
” when it pops up if you try out the last 2 links.