I've got a problem with collison. I've probably didn't understand how to put it all right, i've searched the forum and read the tutorial and yet could'nt solve it.
I've got 2 nodes. 1 is a map and the other is a player. I just want to create a collison between the player and the level.
I think, it is not a good idea to add both the level-triangleselector and the player-triangleselector
to the metaselector. But because i don't know what you want to do and what happens, maybe the problem lies somewhere else...
It has long been an axiom of mine that the little things are
infinitely the most important.
-- Sir Arthur Conan Doyle, "A Case of Identity"
At first some basic things:
What is needed for collision?
- selector for first node
- collision respone animator for second node with parameter like pointer to selector for other node. /See collision example/
Well, if you have many nodes you must use meta triangle selector like parameter. In this meta selector you must add selectors for all nodes, with which your node must collide. In this case your node will collide with all nodes which selectors are in meta triangle selector. This collision is of type "one to all".
If you want to make collision of type "all to all", when each node must collided with every node, you can use my function.
In this case you must first add meta triangle selector which return this function to each one node. And second - to create collision respone animator to each one s node with correspondent meta triangle selector.
Or if you have 10 nodes - you need 10 meta triangle selectors and 10 collision respone animators for full collision of this type. Just use any loop for this.
About your code
- you have not any collision respone animator, therefore you have not any collision. Create one for your player
- don't add player in meta triangle selector, because will get auto collision
Site development -Rock and metal online --- etcaptor.com ------freenetlife.com