Merge branch 'audio-debug-video-player' of https://github.com/Tryibion/FlaxEngine into Tryibion-audio-debug-video-player

This commit is contained in:
Wojtek Figat
2024-09-29 22:14:51 +02:00
2 changed files with 14 additions and 0 deletions

View File

@@ -152,6 +152,18 @@ int32 VideoPlayer::GetFramesCount() const
return _player.FramesCount;
}
#if USE_EDITOR
#include "Engine/Debug/DebugDraw.h"
void VideoPlayer::OnDebugDrawSelected()
{
// Draw influence range
if (_isSpatial)
DEBUG_DRAW_WIRE_SPHERE(BoundingSphere(_transform.Translation, _minDistance), Color::CornflowerBlue, 0, true);
Actor::OnDebugDrawSelected();
}
#endif
bool VideoPlayer::IntersectsItself(const Ray& ray, Real& distance, Vector3& normal)
{
return false;

View File

@@ -221,6 +221,8 @@ public:
const Vector3 size(50);
return BoundingBox(_transform.Translation - size, _transform.Translation + size);
}
void OnDebugDrawSelected() override;
#endif
bool IntersectsItself(const Ray& ray, Real& distance, Vector3& normal) override;