Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2017, 4:17:59 PM (6 years ago)
Author:
kohlia
Message:

Position/velocity setting works now, relative script paths not, added test script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_HS17/src/orxonox/scriptablecontroller/scriptable_controller_api.h

    r11606 r11638  
    3939    ~ScriptableControllerAPI();
    4040
    41     // --- API ----------------------------------
     41// ### API ####################################################################
    4242
    4343    /**
     
    139139    void killPawn(std::string id);
    140140
    141     // ------------------------------------------
     141    /**
     142     * @brief Set the position of an object
     143     * @param id The ID of the object
     144     * @param x The position on the x-axis
     145     * @param y The position on the y-axis
     146     * @param z The position on the z-axis
     147     */
     148    void setPosition(std::string id, double x, double y, double z);
     149
     150    /**
     151     * @brief Set the orientation of an object
     152     * @param id The ID of the object
     153     * @param x The x component of the axis vector
     154     * @param y The y component of the axis vector
     155     * @param z The z component of the axis vector
     156     * @param angle The angle around the axis
     157     *
     158     * To set the orientation, you have to specify the direction that the
     159     * object should be facing with the vector (x, y, z) and the rotation
     160     * of the object around this axis with 'angle', which has to be given
     161     * in degrees, NOT radian. The vector does not have to be normalized.
     162     */
     163    void setOrientation(std::string id, double x, double y, double z, double angle);
     164
     165    /**
     166     * @brief Set the velocity of an object
     167     * @param id The ID of the object
     168     * @param x The velocity in x-direction
     169     * @param y The velocity in y-direction
     170     * @param z The velocity in z-direction
     171     *
     172     * The velocity is in units per second.
     173     */
     174    void setVelocity(std::string id, double x, double y, double z);
     175
     176    /**
     177     * @brief Set the angular velocity of an object
     178     * @param id The ID of the object
     179     * @param x The rotation velocity around the x-axis
     180     * @param y The rotation velocity around the y-axis
     181     * @param z The rotation velocity around the z-axis
     182     */
     183    void setAngularVelocity(std::string id, double x, double y, double z);
     184
     185// ### API END ################################################################
    142186
    143187    /**
Note: See TracChangeset for help on using the changeset viewer.