/** * @brief Create a 360 degree Object (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 $renderPosition If you have multiple 360Objects created with transparencies */ public static function create360Object($id, $model, $texture, $translation, $scale, $rotation, $renderPosition = NULL) { $obj = new ArelObjectModel3D($id); $obj->setModel($model); $obj->setTexture($texture); $obj->setScale($scale); $obj->setRotation($rotation); $obj->setTranslation($translation); $obj->setRenderOrderPosition($renderPosition); return $obj; }