Hi everyone, hope you’re well.
Real world: You putt your golf ball towards the hole, it’s too fast and not dead-centre. The ball spins out of the hole, you’ve missed, doh!
I’ve been trying to simulate this in corona… First I thought of using a kind of magnetism simulation, which proved to be difficult as Corona hasn’t included BOX 2D’s radial gravity feature.
Particle candy has a nice attractor field simulation in it’s effects library, but only works on particles… I didn’t fancy having my main-sprite as a physics particle, so I’m left with one option that I can’t quite get my head around.
I intend on creating a sensor over the ‘hole’ that applies a linear impulse toward the center of this hole when the ball collides. This would work great for me as the impulse factor will have a stronger or weaker effect on the ball, based on it’s velocity…
I’m not sure if I’m on the right track with this I’m not even sure how to implement it, so if any of you can help or think of a better approach, I’d be truly grateful.
Mark [import]uid: 176868 topic_id: 35435 reply_id: 335435[/import]
