[Tutor] Ball in Box
Kent Johnson
kent37 at tds.net
Mon Apr 14 02:19:34 CEST 2008
brebreman3 wrote:
> I have drawn the circles by the circ.draw and i have defined the radius of
> the circle. I do know how to also get them to move just I don't know how to
> do friction and get them to only bounce inside of the pool table that was
> created.
Can you show us some code?
You will have to check the position of the balls against the borders of
the table. If a ball is at the edge of the table then reverse one
component of its direction.
Kent
>
> Kent Johnson wrote:
>> brebreman3 wrote:
>>> I don't have a clue how to get the ball to bounce inside of the
>>> pool table and for the pocket to be created inside the pool table.
>> How are you representing the balls? Do you know how to get them to move?
>> What are you using to draw them?
>>
>> Kent
>> _______________________________________________
>> Tutor maillist - Tutor at python.org
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>
>
More information about the Tutor
mailing list