cassius Posted June 28, 2013 Share Posted June 28, 2013 I have an enemy character who follows my main character around.When at ground level it works fine but when my main character goes up a step into a room the enemies characters feet are buried in the floor and still at ground level. I am using a pivot as its controller. bg_control = Pivot::Create(); bg_control->SetMass(90); bg_control->SetPhysicsMode(Entity::CharacterPhysics); bg_control->SetPosition(17.5,1.9,8.0); badguy->SetParent(bg_control,false); badguy->Move(0,1.4,0); The room physics must be ok or the main character would be affected. Anyone help? Thanks EDIT:The enemy character is parented to the pivot, I am assuming that characters NEED controllers in Leadwerks 3.Is that correct? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
AggrorJorn Posted June 28, 2013 Share Posted June 28, 2013 If you want to make use of the navmesh or setInput commands, than yes, you have to use character controllers. Quote Link to comment Share on other sites More sharing options...
cassius Posted June 29, 2013 Author Share Posted June 29, 2013 Does there have to be a SetInput command with each enemy character as with updatecontroler in le2 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
AggrorJorn Posted June 29, 2013 Share Posted June 29, 2013 No, just for characters that move based on your keyboard input. CharacterControllers that use GoToPoint() or Follow() don't need to use this Quote Link to comment Share on other sites More sharing options...
cassius Posted June 29, 2013 Author Share Posted June 29, 2013 It looks like the Follow command causes the problem. It probably needs to be used in conjunction with other commands. Leaving it out makes the character pjysics work properly. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ 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.