Here is my problem:
I got a class "Vehicle" and every Vehicle gets a pointer on a scene node, which is e.g. a Tank or a Rover...
now i want to select one Node with my cursor ( by using a ray and the getSceneNodeAndCollisionPointFromRay-method). that works fine! but i now i want to get the Object of type "Vehicle", which belongs to the selected scene-node.
example:
I got a Vehicle "Super-Tank" and it has a pointer on a sceneNode called "tankNode". now i select the tanknode with my mouse cursor, and i want the program to give me the belonging Object, the "Super-Tank".
any Ideas how i could do that?
thank you so much and forgive my bad english
