Biped Class : MultFprintParams

 

   

Character Studio - Quick Navigation

This class represents multiple footstep creation parameters of a Biped. An instance of this class is returned by the biped.getMultipleFSParams <gait_type_name> method, where gait_type_name can be #walk, #run or #jump.

Properties

<MultipleFSParams>.alternate Boolean Default: true(walk)true(run)true(jump) 	 

Footsteps will alternate between right and left. Alternate is always selected when the Walk gait is selected. You can only clear Alternate when Run or Jump gaits are selected.

   

<MultipleFSParams>.numFootsteps Integer Default: 4(walk)4(run)4(jump)   

Determines the number of new footsteps to be created.

   

<MultipleFSParams>.paramStrideWidth Float Default: 1.0(walk)1.0(run)1.0(jump) 

Sets the stride width as a percentage of the pelvis width. A value of 1.0 produces a stride width equal to the pelvis width. A value of 3.0 produces a wide, waddling stride. Changes to this setting automatically change the Actual Stride Width.

Parametric describes the parameter in terms of biped anatomy, and Actual describes the value in 3ds Max units.

   

<MultipleFSParams>.autoTiming Boolean Default:true (walk) true (run) true (jump) 

Sets timing parameters automatically. Auto Timing affects the following timing parameters for the Walk gait:

Walk footstep, Double Support

When Auto Timing is selected, these parameters are automatically adjusted to reasonable values. Control the footstep sequence by adjusting the Stride Length and Time to Next Footstep parameters.

When Auto Timing is cleared, you can control the footstep sequence by adjusting the gait timing parameters, but you can't change the Time to Next Footstep parameter.

   

<MultipleFSParams>.interpTiming Boolean Default: false(walk)false(run)false(jump) 

Control acceleration or deceleration of the series of footsteps.

   

<MultipleFSParams>.multiInsertInTime Boolean Default:false (walk) false (run) false (jump) false - Start after last footstep

Appends the newly created footsteps to the end of the existing footstep sequence.

   

true - Start at current frame

Inserts the newly created footsteps at the current frame after the existing footstep sequence allowing you to make a gap in time before the footsteps start again.

   

<MultipleFSParams>.paramStrideLength1 Float Default: 0.75(walk)1.5(run)2.4(jump) 

Sets the stride length for the First Step as a percentage of the length of the biped's leg. The default value of 0.75 gives an average stride of normal proportions.

A value of 1.0 will produce a stride length equal to the leg length, which makes the biped stretch slightly to reach the next step. A value of 0.0 will make the biped walk in place. A negative stride length will make the biped walk backwards.

When a biped walks backwards, it does not simply reverse the forward movement but maintains the correct foot-state sequence with the toe touching the ground first, followed by the heel.

   

<MultipleFSParams>.actualStrideHeight1 Float Default: 0.0(walk)0.0(run)0.0(jump) 

Sets the rise or fall between footsteps for the First Step. You can use this parameter to create a set of footsteps going up or down a slope or a stairway.

The value for Actual Stride Height is the difference in height in units between each of the new footsteps. Positive values step up and negative values step down.

   

<MultipleFSParams>.cycle1 Time Default: 15f(walk)15f(run)15f(jump) 

Sets the Time to Next Footstep for the First Step.

   

<MultipleFSParams>.paramStrideLength2Float Default: 0.75(walk)1.5(run)2.4(jump) 

Sets the stride length for the Last Step as a percentage of the length of the biped's leg. The default value of 0.75 gives an average stride of normal proportions.

A value of 1.0 will produce a stride length equal to the leg length, which makes the biped stretch slightly to reach the next step. A value of 0.0 will make the biped walk in place. A negative stride length will make the biped walk backwards. When a biped walks backwards, it does not simply reverse the forward movement but maintains the correct foot-state sequence with the toe touching the ground first, followed by the heel.

   

<MultipleFSParams>.actualStrideHeight2Float Default: 0.0(walk)0.0(run)0.0(jump) 

Sets the rise or fall between footsteps for the Last Step. You can use this parameter to create a set of footsteps going up or down a slope or a stairway.

The value for Actual Stride Height is the difference in height in units between each of the new footsteps. Positive values step up and negative values step down.

   

<MultipleFSParams>.cycle2Time Default: 15f(walk)15f(run)15f(jump) 

Sets the Time to Next Footstep for the Last Step.

NOTE:See thebiped. addMultipleFootprints method for creating footsteps based on aMultipleFSParams, and biped.newFootprintKeys creating the biped keys for the inactive footsteps.

Since MultipleFSParams is biped independent, the actual stride lengths and heights are not accessible in this class. To convert from a paramStrideWidth value to an actual StrideWidth value, multiply the paramStrideWidth value by the width of the pelvis.

To convert from aparamStrideLength value to an actual StrideLengthvalue, multiply the paramStrideLength value by the length of the right leg. Given a biped_ctrl, the length of the right leg can be calculated by:

EXAMPLE

legLength = distance (biped.getNode biped_ctrl#rleg link:1) (biped.getNode biped_ctrl#rleg link:2) -- thigh
legLength += distance (biped.getNode biped_ctrl#rleg link:2) (biped.getNode biped_ctrl#rleg link:3) -- calf
if ((biped_ctrl.rootnode).controller.leglinks) > 3 do legLength += distance (biped.getNode biped_ctrl#rleg link:3) (biped.getNode biped_ctrl#rleg link:4) -- horsellink, if present

See Also