File size: 505 Bytes
09a6f7f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * @classdesc Abstract class for walker morphologies.
 */
class WalkerAbstractBody extends AbstractBody{
    /**
     * @constructor
     * @param scale {number} - Scale of the environment
     * @param motors_torque {number}
     * @param nb_steps_under_water {number}
     */
    constructor(scale, motors_torque, nb_steps_under_water) {
        super(scale, motors_torque);
        this.body_type = BodyTypesEnum.WALKER;
        this.nb_steps_can_survive_under_water = nb_steps_under_water;
    }
}