Collision Detection Library for thinBasic
Joshy
Printable View
Collision Detection Library for thinBasic
Joshy
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
Quote:
Originally Posted by D.J.Peters
Thanks, another great library.
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
To keep thing organized, I can create dedicated sub forum for this project.
Just ask for it.
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
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
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
Cool demo, keep it coming.