コード例 #1
0
 /**
  * @brief Create a screen fixed 3D Model, meaning it is always stuck to the devices screen
  * @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 int $screenAnchor A constant defining the screen anchor @see ArelAnchor.
  * @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
  * @return ArelObjectModel3D The object created
  */
 public static function createScreenFixedModel3D($id, $model, $texture, $screenAnchor, $scale, $rotation)
 {
     $obj = new ArelObjectModel3D($id);
     $obj->setModel($model);
     $obj->setTexture($texture);
     $obj->setScale($scale);
     $obj->setRotation($rotation);
     $obj->setScreenAnchor($screenAnchor);
     return $obj;
 }