Nov 26, 2011 at 11:32 PM
Edited Nov 26, 2011 at 11:33 PM
I am new to Goblin XNA. Can some body help me on the following.
I have a sphere model and ground marker. The sphere model should appear just on top of the the Ground Marker and when the marker is moved
the sphere should move along on the screen. Currently what happens is the sphere appear on different location.
Following is my code.
GeometryNode sphereNode = new GeometryNode("Sphere");
sphereNode.Model = new Sphere(3, 20, 20);
sphereNode.AddToPhysicsEngine = true;
Material sphereMaterial = new Material();
sphereMaterial.Diffuse = new Vector4(0, 0.5f, 0, 1);
sphereMaterial.Specular = Color.White.ToVector4();
sphereMaterial.SpecularPower = 10;
sphereNode.Material = sphereMaterial;
_monsterTransformNode6 = new TransformNode
Translation = new Vector3(0,0,0)