Page 1 of 1

HitTest

Posted: 30 Jan 2015, 21:32
by zoidberg
Hi,

I'm currently working on a scene with several rectangles which are flying arround. If one rectangle hits another one, booth should be removed from the scene. My problem right now is, that i have no idea how i can do this hittest in Ventuz4.

It's not for an project, just for fun ;-)

Would be great if anybody can help.

Thanks,
Anton

Re: HitTest

Posted: 30 Mar 2015, 09:40
by flaboratoirium
I'm also wondering why the HitTest Node is gone?! :shock:

Re: HitTest

Posted: 08 Apr 2015, 11:41
by flaboratoirium
By the way...Its is possible to load a Ventuz3 Scene containing a HitTest Node. It gets marked as "Deprecated" but works nevertheless.
As i needed the HitTest Functionality in a project this was the way i solved it. But im curious how to achieve Mesh Collision Detection
with Ventuz 4 Nodes. I think there must be a way since Geometry Nodes still have the "Mesh Tester" Input.

Re: HitTest

Posted: 08 Apr 2015, 15:05
by flaboratoirium
I used the hitTest-Node to test a specific fixed coordinate [x:720;y:540] against several Meshes. This Point is NOT a Touchpoint so Buttons won't help in this case.
Basically its a car driving that i had to test against its obstacles. As there is no way to Test n-Gons i simulated the more complex forms with several primitives which worked good enough in my case. But i'm wondering why even that simple collision detection was removed. Testing overlapping points for example was really really helpful :cry:

I agree that using an external library might be far more efficient, but setting it up (is there a manual somewhere?) for some simple and quick hitTesting is a pain in the ass and is somehow against the "throw together some nodes" philosophy of ventuz.

Re: HitTest

Posted: 02 May 2015, 06:30
by calonpintar
i'm using classic math object collision detection between two objects, it is possible to do both with script or fx expression, i just compare x1,x2,y1,y2, bla..bla..but, when i need to detect many objects collision, let's say 10 objects at a time, everything goes crazy. hope ventuz will handle this issue, because sometimes we need more than just a touch input detection.