Merge branch 'tube-to-capsule' of https://github.com/Tryibion/FlaxEngine into Tryibion-tube-to-capsule
This commit is contained in:
@@ -1730,6 +1730,11 @@ void DebugDraw::DrawWireTriangles(const Array<Double3>& vertices, const Array<in
|
||||
}
|
||||
|
||||
void DebugDraw::DrawTube(const Vector3& position, const Quaternion& orientation, float radius, float length, const Color& color, float duration, bool depthTest)
|
||||
{
|
||||
DrawCapsule(position, orientation, radius, length, color, duration, depthTest);
|
||||
}
|
||||
|
||||
void DebugDraw::DrawCapsule(const Vector3& position, const Quaternion& orientation, float radius, float length, const Color& color, float duration, bool depthTest)
|
||||
{
|
||||
// Check if has no length (just sphere)
|
||||
if (length < ZeroTolerance)
|
||||
@@ -1749,6 +1754,11 @@ void DebugDraw::DrawTube(const Vector3& position, const Quaternion& orientation,
|
||||
}
|
||||
|
||||
void DebugDraw::DrawWireTube(const Vector3& position, const Quaternion& orientation, float radius, float length, const Color& color, float duration, bool depthTest)
|
||||
{
|
||||
DrawWireCapsule(position, orientation, radius, length, color, duration, depthTest);
|
||||
}
|
||||
|
||||
void DebugDraw::DrawWireCapsule(const Vector3& position, const Quaternion& orientation, float radius, float length, const Color& color, float duration, bool depthTest)
|
||||
{
|
||||
// Check if has no length (just sphere)
|
||||
if (length < ZeroTolerance)
|
||||
|
||||
Reference in New Issue
Block a user