Rick Posted May 5, 2013 Share Posted May 5, 2013 I have floor segments (made from csg) and in the center of each floor segment I have a pivot. In the scene hierarchy the pivot is a child of the floor segment. floor --->center_pivot When I pick the floor segment I use pickinfo.entity->GetChild(0) to get the pivot at the center, but it returns NULL. Shouldn't this return the child pivot? I know it's picking the floor correctly because I put a sphere at the pick location and the sphere is in the right location. Entity* sphere = Model::Sphere(); sphere->SetPosition(pickinfo.position); Quote Link to comment Share on other sites More sharing options...
YouGroove Posted May 6, 2013 Share Posted May 6, 2013 Are each segment independant objects ? If they was just snapped objects you could pick just the objects instead. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 14, 2013 Share Posted May 14, 2013 I had a similar thing like this. My child was on index 1 instead of 0. Although I had only one child. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.