Setting the speed of movement for the human model "Bill on path"

Typically: "How do I... ", "How can I... " questions
Post Reply
Koioio
Posts: 3
Joined: 22 Mar 2021, 17:01

Setting the speed of movement for the human model "Bill on path"

Post by Koioio »

Hello, tell me please, how to adjust the speed of movement for "Bill on path"? I found in the script of this model the array relativeVel={2,2,1.2,2.3,1.4,1,1,1,1,1.6,1.9,2.4,2.0,1.9,1.5,1,1,1,1,1,2.3,1.5}. Can I change the speed only throuth these parameters? And what do all the numeric values in the array "relativeVel" mean?
For example, if I want to slow down the speed of the model twice, what parameters should I change?

coppelia
Site Admin
Posts: 8450
Joined: 14 Dec 2012, 00:25

Re: Setting the speed of movement for the human model "Bill on path"

Post by coppelia »

Hello,

have a look at variable nominalVelocity, which does exactly what you want.

Cheers

Koioio
Posts: 3
Joined: 22 Mar 2021, 17:01

Re: Setting the speed of movement for the human model "Bill on path"

Post by Koioio »

Well, if I want to know the exact value of the speed of movement of the human model, how can I determine the parameter "walkingSpeed" that is used in this line: nominalVelocity=sim. getScriptSimulationParameter(sim. handle_self, 'walkingSpeed'). I tried to find this parameter in the model, but I didn't find anything, could you tell me where this value is set?
And what is the parameter 'nominalVelocity' measured in?

coppelia
Site Admin
Posts: 8450
Joined: 14 Dec 2012, 00:25

Re: Setting the speed of movement for the human model "Bill on path"

Post by coppelia »

That value is expressed in m/s.
You can set the value in the script directly, instead of getting it as a user parameter (to modify the user parameter, double-click the slider icon next to the script).

Cheers

Koioio
Posts: 3
Joined: 22 Mar 2021, 17:01

Re: Setting the speed of movement for the human model "Bill on path"

Post by Koioio »

Thank you very much for your answers

Post Reply