Jump to content

Missing 'IG::Converter::getZeroDirections' method


photo

Recommended Posts

Hello !

In Unigine 2.14 I was using the method getZeroDirections from the IG::Converter class. 

When I upgraded to 2.15 I noticed the method is now gone and it is not explained in the migration guide on how to replace it.

Can you show me how to replace it to get the same values ?

Maybe with using getZeroBasis ?

 

Thanks,

Antoine

Link to comment

Hello! 

yes, this method has been removed because duplicated method getZeroBasis 

Mat4 zero_basis = converter->getZeroBasis(geo_pos);
vec3 east = vec3(zero_basis.getAxisX());
vec3 north = vec3(zero_basis.getAxisY());
vec3 up = vec3(zero_basis.getAxisZ());

 

Link to comment
×
×
  • Create New...