Exemple #1
0
    def set_mass(self, mass: float) -> None:
        """Sets the mass of the shape.

        :param mass: The new mass value.
        """
        vrep.simSetObjectFloatParameter(
            self._handle, vrep.sim_shapefloatparam_mass, mass)
Exemple #2
0
    def set_orthographic_size(self, ortho_size: float) -> None:
        """ Set the Sensor's orthographic size.

        :param angle: New orthographic size (in metres)
        """
        vrep.simSetObjectFloatParameter(self._handle,
                                        vrep.sim_visionfloatparam_ortho_size,
                                        ortho_size)
Exemple #3
0
    def set_far_clipping_plane(self, far_clipping: float) -> None:
        """ Set the Sensor's far clipping plane.

        :param far_clipping: New far clipping plane (in metres)
        """
        vrep.simSetObjectFloatParameter(self._handle,
                                        vrep.sim_visionfloatparam_far_clipping,
                                        far_clipping)
Exemple #4
0
    def set_perspective_angle(self, angle: float) -> None:
        """ Set the Sensor's perspective angle.

        :param angle: New perspective angle (in degrees)
        """
        vrep.simSetObjectFloatParameter(
            self._handle, vrep.sim_visionfloatparam_perspective_angle,
            math.radians(angle))