Jump to content

Physics problem?


cassius
 Share

Recommended Posts

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?

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

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.

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...