Jump to content
This Topic

Recommended Posts

Posted

There is a scene in my game where I want my main character to push an enemy character down a hole in the ground. This was easy enough when my enemy character had no controller but with a controller I cannot make this work even though the main character has a mass of 60 and the enemy a mass of 5.Can anyone help?

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Posted

..try to control character independently from controller...that means also, do not parent character to controller..if character is not parented to controller, basically you can treat it as you already mention..like a character without controller...instead, try to update character transformations based on controller, and when you want to do things such as one you asking for, simply disable character update cycle and expose it to something else (in this case, pushing it down to ground).

 

Posted
  On 2/28/2012 at 12:54 AM, cassius said:

There is a scene in my game where I want my main character to push an enemy character down a hole in the ground. This was easy enough when my enemy character had no controller but with a controller I cannot make this work even though the main character has a mass of 60 and the enemy a mass of 5.Can anyone help?

 

You can try to SetBodyVelocity(...) to charachter that you want to push.

"Better" is big enemy of "good"

Posted

Can you explain a bit more about bodyvelocity. is it applied to enemy character?

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Posted

Perhaps applying a force. But bodyvelocity would work as well. When the player for instance presses 'f', you move the enemy with a certain velocity for an amount of time. Personally I would work with forces. I think Bodyvelocity gives you more control, but forces can give unexpected (and thereby perhaps realistic) results.

Posted

Thanks everyone. body velocity worked fine exept that the enemy character got tangled up and stuck in a pillar tongue.png

I will try forces just to compare.... and remove that bloody pillar.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

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.

×
×
  • Create New...