Results 1 to 4 of 4

Thread: TBGL sprite collision; I want to tune the box2circle collision a bit

  1. #1

    TBGL sprite collision; I want to tune the box2circle collision a bit

    Hi folks,

    today I noticed that the box2circle collision is not working in a way I like it. The box side doesn't take collision radius well enough. So I want to think about it more and might make a little change in it's detection. Please raise oyur voice if you count on it a lot and it would brake your project much. The change I want to do is how the box is calculated regarding collision radius.

    Cu
    Michael

    Edit: I attached a new version. If you are brave enough, replace the module
    Attached Files Attached Files

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: TBGL sprite collision; I want to tune the cbox2cirlce collision a bit

    No problem for me,

    I did not used this kind of collision yet.


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: TBGL sprite collision; I want to tune the cbox2cirlce collision a bit

    Mike any improvement in collision handling is a good thing. Thanks for worrying about breaking, but there is that command you can call in thinBasic that tells you the minimum version required for the application. I think this is a great command to keep users informed of required versions for that app to work as expected. That should cover you in any improvements you make.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  4. #4

    Re: TBGL sprite collision; I want to tune the cbox2cirlce collision a bit

    Hi folks,

    I think I fixed it. Get a new TBGL module from the first post in this topic till a new beta or final is out.

    Michael

Similar Threads

  1. TBGL Sprites collision sample 2
    By Michael Hartlef in forum TBGL module by Petr Schreiber
    Replies: 7
    Last Post: 03-11-2009, 15:51

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •