How could i manage to get a perfect ball collision with two sprites with velocities (x and y)? I know it has some combination of cos/sin,but i cant quite figure it out. I have done this before but i can't seem to do it again.
Thanks in advance!
Offline
<when green flag clicked>
<forever>
<if>
<touching[ Sprite
<turn cw( 180 )degrees>
<point in direction( (( 0 <-> <direction> ))
Offline
slayerrobe7 wrote:
[blocks]<when green flag clicked>
<forever>
<if>
<touching[ Sprite
<turn cw( 180 )degrees>
<point in direction( (( 0 <-> <direction> ))[/blocks]
Nice try, but I think zxz meant something slightly more complicated.
I never actually attempted perfect collisions, but I've seen many projects that use them. You could try searching for them... I'd do it for you but I'm temporarily lazy
Offline
LS97 wrote:
slayerrobe7 wrote:
[blocks]<when green flag clicked>
<forever>
<if>
<touching[ Sprite
<turn cw( 180 )degrees>
<point in direction( (( 0 <-> <direction> ))[/blocks]Nice try, but I think zxz meant something slightly more complicated.
I never actually attempted perfect collisions, but I've seen many projects that use them. You could try searching for them... I'd do it for you but I'm temporarily lazy![]()
How can you be temporarily lazy?
Offline
Qwiffles wrote:
LS97 wrote:
slayerrobe7 wrote:
[blocks]<when green flag clicked>
<forever>
<if>
<touching[ Sprite
<turn cw( 180 )degrees>
<point in direction( (( 0 <-> <direction> ))[/blocks]Nice try, but I think zxz meant something slightly more complicated.
I never actually attempted perfect collisions, but I've seen many projects that use them. You could try searching for them... I'd do it for you but I'm temporarily lazy![]()
How can you be temporarily lazy?
Right now, I'm lazy. Maybe in an hour I'll be screaming to get out of bed.
Offline