/** * @brief Create a Glue Movie Texture (Movie overlaid a real world object) * @param String $id Id of the AREL Object * @param String $moviePath Path to the 3G2 movie that shall be displayed on the reference (coordinate system) * @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 createGLUEModel3DFromMovie($id, $moviePath, $translation, $scale, $rotation, $coordinateSystemID) { $obj = ArelObjectModel3D::createFromMovie($id, $moviePath); $obj->setScale($scale); $obj->setRotation($rotation); $obj->setTranslation($translation); $obj->setCoordinateSystemID($coordinateSystemID); return $obj; }