Make hover circle work again and remove unneccessary conversion function

This commit is contained in:
sylvass
2022-01-26 05:41:46 -05:00
parent f8936db40c
commit 5128056272
6 changed files with 36 additions and 21 deletions
+15 -1
View File
@@ -460,6 +460,10 @@ void ScreenSpaceRenderable::update() {}
bool ScreenSpaceRenderable::isEnabled() const {
return _enabled;
}
bool ScreenSpaceRenderable::isUsingRaeCoords() const
{
return _useRadiusAzimuthElevation;
}
void ScreenSpaceRenderable::setEnabled(bool isEnabled)
{
_enabled = isEnabled;
@@ -550,11 +554,21 @@ void ScreenSpaceRenderable::translate(glm::vec2 translation, glm::vec2 position)
_cartesianPosition = translationMatrix * origin;
}
void ScreenSpaceRenderable::setPosition(const glm::vec3& position)
void ScreenSpaceRenderable::setCartesianPosition(const glm::vec3& position)
{
_cartesianPosition = position;
}
void ScreenSpaceRenderable::setRaeFromCartesianPosition(const glm::vec3& position)
{
_raePosition = cartesianToRae(position);
}
glm::vec3 ScreenSpaceRenderable::raePosition() const
{
return _raePosition;
}
glm::mat4 ScreenSpaceRenderable::globalRotationMatrix() {
// We do not want the screen space planes to be affected by
// 1) The global rotation of the view applied in the render engine