Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5805 > unrolled thread

Terry Blunts CoOrdinate Collision Program

Started byRichard Ashbery <basura@invalid.addr.uk>
First post2019-07-30 18:14 +0100
Last post2019-07-31 18:56 +0100
Articles 4 — 2 participants

Back to article view | Back to comp.sys.acorn.programmer


Contents

  Terry Blunts CoOrdinate Collision Program Richard Ashbery <basura@invalid.addr.uk> - 2019-07-30 18:14 +0100
    Re: Terry Blunts CoOrdinate Collision Program News <chrisjohnson@spamcop.net> - 2019-07-31 14:38 +0100
      Re: Terry Blunts CoOrdinate Collision Program News <chrisjohnson@spamcop.net> - 2019-07-31 15:22 +0100
      Re: Terry Blunts CoOrdinate Collision Program Richard Ashbery <basura@invalid.addr.uk> - 2019-07-31 18:56 +0100

#5805 — Terry Blunts CoOrdinate Collision Program

FromRichard Ashbery <basura@invalid.addr.uk>
Date2019-07-30 18:14 +0100
SubjectTerry Blunts CoOrdinate Collision Program
Message-ID<57dbc97aa6basura@invalid.addr.uk>
I've cast my eye over Terry Blunt's excellent CoOrdinate program after
making it run on a Raspberry Pi/Full HD monitor. I can't figure out
what's causing objects to stick together (2 or 3 pairs sometimes with
gap) and sometimes a wobble (run CoOrdinate_FHD for some seconds to
see). When a moving object collides it then becomes part of the new
pair. A similar thing happens when the object is static.

The original program (MODE 9) had only 4 filled circles but I've
increased these to 30 - it still exhibits same problem. Any programmer
who would like to take a peek/fix then download from...

http://www.riscosbasic.uk/problems/Terry_Blunt.zip

Information is located in a PDF book...

http://www.riscos.com/support/developers/agrm

and CoOrdinate collisions are covered in section 5.4

Richard

[toc] | [next] | [standalone]


#5806

FromNews <chrisjohnson@spamcop.net>
Date2019-07-31 14:38 +0100
Message-ID<57dc398c98chrisjohnson@spamcop.net>
In reply to#5805
In article <57dbc97aa6basura@invalid.addr.uk>,
   Richard Ashbery <basura@invalid.addr.uk> wrote:
> When a moving object collides it then becomes part of the new
> pair. A similar thing happens when the object is static.

I think you need to change a line in PROCupdate.

Original:
IF a%*a% + b%*b% < c%*c% PROCbounce

Change to:
IF a%*a% + b%*b% <= c%*c% PROCbounce

-- 
Chris Johnson

[toc] | [prev] | [next] | [standalone]


#5807

FromNews <chrisjohnson@spamcop.net>
Date2019-07-31 15:22 +0100
Message-ID<57dc3d8ff2chrisjohnson@spamcop.net>
In reply to#5806
In article <57dc398c98chrisjohnson@spamcop.net>,
   News <chrisjohnson@spamcop.net> wrote:
> I think you need to change a line in PROCupdate.

No - that doesn't solve the problem.

-- 
Chris Johnson

[toc] | [prev] | [next] | [standalone]


#5808

FromRichard Ashbery <basura@invalid.addr.uk>
Date2019-07-31 18:56 +0100
Message-ID<57dc51199cbasura@invalid.addr.uk>
In reply to#5806
In article <57dc398c98chrisjohnson@spamcop.net>, News
<chrisjohnson@spamcop.net> wrote:
> In article <57dbc97aa6basura@invalid.addr.uk>, Richard Ashbery
>    <basura@invalid.addr.uk> wrote:
> > When a moving object collides it then becomes part of the new
> > pair. A similar thing happens when the object is static.

> I think you need to change a line in PROCupdate.

> Original: IF a%*a% + b%*b% < c%*c% PROCbounce

> Change to: IF a%*a% + b%*b% <= c%*c% PROCbounce

No sadly it doesn't - thanks for trying. Let me know if you have any
other ideas.

Would make a great screen saver.

Richard

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web