Why have I got shaking Balls
chrisal
Member Posts: 74
Hi All,
So I have been playing around with physics and drag for a couple of weeks now. I am trying to create a game on the lines of air hockey, pool that type of game, where the user is looking down on to the board. I have noticed that friction does not really work for this type of game so have had to use the dreaded drag. To get my players to stop when I want them to I have to set the drag to 300. This causes the players to to shake when they come to a stop. Also I still cannot get them to stop rotating by using the drag function. And yes I have been using GS 8.7.
Any thoughts or tips or advice on the matter would be great, are there any physics gods out there?????
Cheers
Chris
So I have been playing around with physics and drag for a couple of weeks now. I am trying to create a game on the lines of air hockey, pool that type of game, where the user is looking down on to the board. I have noticed that friction does not really work for this type of game so have had to use the dreaded drag. To get my players to stop when I want them to I have to set the drag to 300. This causes the players to to shake when they come to a stop. Also I still cannot get them to stop rotating by using the drag function. And yes I have been using GS 8.7.
Any thoughts or tips or advice on the matter would be great, are there any physics gods out there?????
Cheers
Chris
This discussion has been closed.
Comments
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Try removing the instances from the scene and reintroducing them or create a new scene. That cleared things up for me after hours of banging my head against my desk after playing with the friction, etc.
I reported the same issue with some block actors that I had and it seems to have only been introducted since 0.8.6.
I have tried reintroducing the actors and it still does it.
I am quite sure that it has something to do with the drag attribute because if I set it to let say "1000" the balls go crazy.
The stress is starting to build now as I have tried everything for about two weeks. Do you know if friction works for this kind of game???
Many Thanks
On the levels I was having trouble with, I had noticed that I had made changes to the individual actors in the scene to customize them so they had differed with the prototype. I couldn't figure out why when I removed and re-added them the shaking stopped.
It could be something with the Box2D physics system but maybe a person has to compare your project against the pool table example to see where the differences lie. I haven't looked at that project in awhile either so I can't remember if it uses drag or not.
Maybe see if you can get someone from Gendai to respond as I am curious as to why this is happening as well.
Unfortunately the wiki has almost nothing on physics, like density and friction.
It would be useful if Gendai could give us some pointers to how there physics engine works
The detailed info is few and far between. You have to search the forum hoping to find an answer and when you do, it's for several versions ago and the things it describes to do are no longer present in the current version.
I'd like to see more detailed docs on using functions, variables and of course physics that are updated with each release to document changes.
Here is a link to the test file that I built to try to find a solution to it. No responses in several months.
http://gamesalad.com/game/play/49309
The only solution I have found is to spawn a clone of the actor when it comes to a virtual stop. Then destroy the old actor.
_______________________
*** visit www.spiritApps.com to check out the Spirit Connoisseur Apps ***
(Rum and Vodka now available for 17+)
_______________________
meh 2 lulz
I think its a bug.
But the post name sure caught my attention!
lol!
Cheers, Dragokillz
If it wasnt for the support from people on the forums, I'd have probably ditched GameSalad, as the provided documentation has big holes in it all over the place.
From digging through the forums, it does appear to be a known bug thats been around for a while, so it would be nice if it could be fixed, instead of us having to figure out yet another work around.
Patronus, why are your balls not shaking like mine???
Link
http://gamesalad.com/game/play/29821
The only solution is clone new and destroy original.
You have to use motion because it is the only way to overrule all kinds of movement (acceleration, move, etc)
And kudo's for the thread title
Lump Apps and My Assets
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left