(01-25-2012, 04:37 PM)CeftKuro Wrote: Cna't you just add "Force" to a specific part of the Corpses such as the arms to make them move independantly?
Yes that is possible. To create any precise movements would take a very long time though. Just to create a walk animation I'm guessing you would have to spend a year testing different loops of pushes.
To try this out for yourself:
1. Start ModelEditor.exe
2. Open the model you want to add forces to; lets take the corpse as an example;
Amnesia - The Dark Descent\redist\entities\organic\corpse_male\corpse_male.ent
3. Select a green shape; look at the name. Each of those green shapes are what gives the model gravity & physics.
To move the left hand for example:
AddBodyImpulse("Corpse_male_1_body_9",
3.0,
0.0,
0.0, "");
Will jerk the hand in positive x-direction. (Probably while the model lies on the ground in a mess).
To have the model stand up and raise both arms:
0. Important: Save as first; to not overwrite the old entity. Give it a new name --> "Corpse_Ceft" for example.
1. A. Select each green shape which shall not be moved and set mass = 0.
1. B. Select the chest green shape (Body_1) and set mass = 0.
---> Do either 1. A or 1. B. If you don't the model will simple fall onto the ground as the normal corpses do. 1. B. Allows for movement of the legs while 1. A. secures the legs in place (throwing stuff at the legs won't cause them to jerk around.)
2. Apply force or impulse to the arms in a Y-direction. You could also make the arms stiff by replacing the green shapes of the arms with 2 green shapes for each arm. One for the arm itself and one for the hand.
3. The forces/impulses can be given a more smooth movement by being applied by a repeating timer; pushing the arm a little each 0.1 second for example.
To give you a greater understanding of "rag-doll-entities", which is what the corpse is, look here:
http://wiki.frictionalgames.com/hpl2/tut...tutorial_2
This might seem confusing at start :>