T0X1N Posted May 30, 2016 Share Posted May 30, 2016 Does anybody know of a way to get the model class from an Entity class? I want to get the model from the parent entity of the surface I picked in my program, but with the GetParent() function, it returns Entity, but I want the Model class so I can edit it's geometry. I also would like to do the same would for GetChild(). Quote Website | Twitter | Facebook | Steam Play Our Latest Game: Relic Rogue Link to comment Share on other sites More sharing options...
T0X1N Posted May 30, 2016 Author Share Posted May 30, 2016 Nevermind... I just figured it out. Not sure why it was not working before. The solution is: (Model*)entity->GetParent(); or (Model*)entity->GetChild(childnumber); Quote Website | Twitter | Facebook | Steam Play Our Latest Game: Relic Rogue 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.