/** * @brief Create a basic Glue 3D Model. * @param String $id Id of the AREL Object * @param String $model Path to the model of the Object or to the zip package holding all the information * @param String $texture Path to the texture of the Object (jpg or png file) * @param Array $translation An array given all translation parameters x,y,z * @param Array $scale An array providing scale values along three axis (x, y, z) * @param ArelRotation $rotation Provides the rotation information. Can be defined as euler (rad / deg), quaternion, axisangle or matrix * @param Int $coordinateSystemID ID of the corrdinateSystem the model shall be attached to */ public static function createGLUEModel3D($id, $model, $texture, $translation, $scale, $rotation, $coordinateSystemID) { $obj = new ArelObjectModel3D($id); $obj->setModel($model); $obj->setTexture($texture); $obj->setScale($scale); $obj->setRotation($rotation); $obj->setTranslation($translation); $obj->setCoordinateSystemID($coordinateSystemID); return $obj; }