Collision Detection Library for thinBasic
Joshy
Collision Detection Library for thinBasic
Joshy
(Sorry about my bad English.)
Well done Joshy... looking forward to the examples!
This is something I've been working on and trying to figure out for quite some time in both python and freebasic... you have made it look easy! I'm still working hard and it is fantastic to learn from such good programmers as you, Eros, Petr, Charles, Michael, Kent, Frank, and everyone else posting great code examples!
Cheers,
Stan
Originally Posted by D.J.Peters
Thanks, another great library.
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
HI Joshi,
thanks for the contribution. Can you turn these into TB modules? Because
1) We get rid of the declares
2) To my knowledge, calling external DLL functions is slower than module functions. But I could be wrong here.
Hi Joshy,
thanks a lot, this is looking fantastic.
I am looking forward to test it more.
Did you find the KeywordDocumenter usable?
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
To keep thing organized, I can create dedicated sub forum for this project.
Just ask for it.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
I would vote for making it module too.
Modules can autodeclare not only procedures for TB, but even UDTs (structs).
For UDTs, I would propose convention with module prefix as well -> here TBCDL_Vector3D.
This will help avoiding name conflicts.
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
Of course i can make a TB module later but in
it's current experimental state it's ok as "normal" DLL.
if we have
...
TBGL_EntityGetCurrentMatrix(%SceneID,%EntityID,Matrix)
TBCD_SetMatrix(%ModelID,Matrix)
...
i will compile it as real TBCD module.
(without "L" in it's name TBCDL = library TBCD = thinBasic module)
Joshy
(Sorry about my bad English.)
first example RayModelTest.tBasic added.
it's nice if you will create an 3D editor and need to select triangles from model with the mouse.
get current version from first post.
i will add more examples from time to time.
Joshy
(Sorry about my bad English.)
Cool demo, keep it coming.
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
Bookmarks