≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
I need help detecting collisions with custom scene nodes. I put a custom node in an official tutorial and it's not solid.
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b][/b] wrote: Here's the thread about the OBJ Loader: [url]https://ambiera.com/forum.php?t=2112[/url] The first post says this: [quote][b]Since the loader doesn't stop the execution of the rest of the program, I had difficulty implementing collisions for the object. To resolve this issue, I had to add the TriangleSelector after the mesh was loaded. Before loading the mesh, create a MetaSelector and apply it to the camera. Then, in the pastebin code, at line 113, create a TriangleSelector and add that to the allready existing MetaSelector.[/b][/quote] I followed his instructions by creating a "[b]CL3D.MetaTriangleSelector[/b]" before I imported the object, and then I injected the "[b]CL3D.MeshTriangleSelector[/b]" for the imported object into the "[b]MetaTriangleSelector[/b]" by using this code, but I can still walk through it like it's not solid: [code][b]MetaTriangleSelector.addSelector(MeshTriangleSelectorOfImportedObject);[/b][/code]I know I created the MetaTriangleSelector correctly because I injected the MeshTriangleSelector of the Cube Scene Node from the "[b]cubescenenode.js[/b]" file that's included with CopperLicht into the MetaTriangleSelector and the collision system works for it. I may not be capturing the Mesh from the OBJ Loader script correctly. If someone wants to help, please remember that I am using the script from the second pastebin link in that thread (in the second post from [b]warner[/b]).[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact