Image.Radius

About Monkey 2 Forums Monkey 2 Development Image.Radius

This topic contains 2 replies, has 2 voices, and was last updated by  Arjailer 2 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2560

    Arjailer
    Participant

    Image.Radius appears to be the Image.Bounds diagonal length, which I would have assumed would be the image diameter, not radius.

    Or have I missed something?

    #2563

    Mark Sibly
    Keymaster

    It’s the max length from the image handle to the bounds vertices.

    If the image handle is 0,0, then Radius will indeed be the diagonal length. But using a handle of .5,.5 will halve the radius etc.

    The idea with Radius is to provide a quick ‘worse case’ radius value for culling/colliding rotating images.

    Ditto ‘Bounds’ can be used to cull non-rotating stuff. Both also take the ‘static’ image scale into account.

    #2573

    Arjailer
    Participant

    <nods> that makes sense – I had left the handle at 0,0.

    Thanks for the explanation  🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.