PDA

View Full Version : How do I make a person object walk?


coynerm
09-05-2006, 09:47 AM
I assumed objects with legs would have a walk method but it appears they do not. Does that mean I will have to create a walk method that moves the different parts of the leg (upper, lower, foot) in sequence to create a walking affect?


Pls advise.

lanceA
09-05-2006, 10:57 AM
For most objects in Alice you will have to code all movement. However if you only need a "person" object then look in the People folder and select either the HeBuilder or SheBuilder objects. Each of these objects have additional methods built into them to facilitate walking, etc.

madden
02-17-2007, 01:20 PM
Its True:)

chuck
02-18-2007, 07:15 PM
There are two ways that I can think of to program objects to walk:

-- one is to manipulate the object into poses for the different parts of walking, then move the character while cycling through the poses.

-- the second is to create code to move the subparts of the object in question, such as a person object's legs.

Attached is a world with a primitive routine to make a squad of soldiers march, using the code-based method. Alice 3 characters should have better higher-level behaviors, like walking.