Object Picking and Transformation
Posted: Thu Jun 14, 2007 2:10 pm
Hi,
I'm working with object picking and transformation acording to the touchpoint from the scene. i tried a lot but i dint get solution.
This is my code.
Position2D pos = ev.MousePosition;
SceneNode selectedSceneNode = device.SceneManager.CollisionManager.GetSceneNodeFromScreenCoordinates(pos, 0 , false);
if (selectedSceneNode != null)
{
MessageBox.Show(selectedSceneNode.Name );
}
In the scene i added one cube scene node. Some time i'm getting camera scenen node also.
I'm trring to do some thing like irredit object transformation.
can any one please give some some samples and help to solve my problem.
thanks in advance.
I'm working with object picking and transformation acording to the touchpoint from the scene. i tried a lot but i dint get solution.
This is my code.
Position2D pos = ev.MousePosition;
SceneNode selectedSceneNode = device.SceneManager.CollisionManager.GetSceneNodeFromScreenCoordinates(pos, 0 , false);
if (selectedSceneNode != null)
{
MessageBox.Show(selectedSceneNode.Name );
}
In the scene i added one cube scene node. Some time i'm getting camera scenen node also.
I'm trring to do some thing like irredit object transformation.
can any one please give some some samples and help to solve my problem.
thanks in advance.