additive restitution
CoIin
Member Posts: 197
If a movable ball with a collide attribute is set to a restitution of 1, it will bounce on the specified non movable actor without losing energy. That happens no matter what the restitution is of the non movable actor.
Is it possible to have the bounce be based on the restitution of both actors? You can imagine, a rubber ball bouncing on concrete should have a different outcome than the same ball bouncing on grass, or on sand.
Is it possible to have the bounce be based on the restitution of both actors? You can imagine, a rubber ball bouncing on concrete should have a different outcome than the same ball bouncing on grass, or on sand.
Comments
Constrain the ball's restitution to that global attribute.
In the other surfaces, when the ball collides, set the global bounciness to something different.
I agree that this is a shabby solution, it should be built into the engine, and will only work if you have one main ball...
but maybe it's a start...
i.e. when the ball is within 10 pixels or whatever, change it then...
but again, it is a hack. and would only work in a very controlled environment.
btw, Colin, I come to some FCNY meetings, and have been using gamesalad since you demoed it a few weeks ago...I'll introduce myself again at this Wednesday's meeting. Thanks for showing me this great software! GameSalad is a lot of fun!
I just submitted my first game the other night to the App Store: Danger Cats!
You can try it here:
http://gamesalad.com/game/play/30122
Best,
Joe
I have comments on Danger Cats, but I'll post those in the other thread.
No, that's fine. I'd like to show it off!
I thought I had turned off sharing the project, though...
When I uploaded it, I turned off that checkbox.
How are you able to download the project files?
I don't see how to do that...
Well, if you hacked it, that's fine.
I just didn't want the download project button to be visible
hacking is the sincerest form of flattery...