hello,
I am a physx newbie and so far I have managed to setup the SDK properly and assign basic physics properties to my objects, nothing fancy just spheres, boxes and capsules. So far so good.
I have also successfully created triangle mesh actors (I can see them in the Visual debugger).
However I have an issue and I have a bit of a hard time in solving it.
I have re-created the classic “camera cube tool” (as seen i.e. in 3DStudioMax) and my intent with it is to control the camera of my editor.
For that purpose I am rendering a 3D object in 2D space (orthogonal rendering) on the top right corner of my screen. The rendering is okay but I can’t figure out how to associate my physics object (triangle mesh) to the correct location.
The reason why I want to associate my camera cube tool with a series of physX actors is that I’d like to be able to let physics raycasts do the picking for me (i.e. click on top left corner triangle mesh or click on front face of cube etc).
I can see the triangle meshes of my camera cube tool in the visual debugger but they are on the complete opposite side of my camera (which for debug purposes i associae a sphere so I can see the camera in the Visual Debugger tool as well).
Maybe I am thinking of all this in a wrong way but I believe the problem is that the position that physX attributes to my Camera cube tool actor is somehow taking the wrong transform so I need to somehow bring it back into world space (the position of my camera cube tool is obviously in screen space and uses a 2D view matrix as well as an orthogonal projection to be rendered).
I would gladly post some code if someone is interested in more detail what I am trying to do.