Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I used this example; var mouseX = ccbGetMousePosX(); var mouseY = ccbGetMousePosY(); var anode = ccbGetSceneNodeFromName("somenode"); var pos3d = ccbGet3DPosFrom2DPos(mouseX, mouseY); ccbSetSceneNodeProperty(anode, "Position", pos3d); from the documentation and it doesn't work. the cube some. It only appears when I put only the x and z axis. keeping the Y when you move the mouse above its position in the world it disappears. when you move down it appears. I want a 3d object always in a 2d position on the screen a fake 2d overplay. |
||||
|
Hi cm20, I don't think you're using the funciton for what it's designed to do. If you want some object to be presented as sort of overlay you can just put it in front of your camera in the editor and parent it to the camera node. |
|