mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-19 00:31:52 -05:00
gizmo color
This commit is contained in:
parent
a90a83a332
commit
8ba9fa5555
|
|
@ -33,10 +33,14 @@ namespace UniVRM10
|
|||
switch (ColliderType)
|
||||
{
|
||||
case VRM10SpringBoneColliderTypes.Sphere:
|
||||
Gizmos.color = Color.magenta;
|
||||
Gizmos.DrawWireSphere(Offset, Radius);
|
||||
break;
|
||||
|
||||
case VRM10SpringBoneColliderTypes.Capsule:
|
||||
Gizmos.color = Color.cyan;
|
||||
Gizmos.DrawWireSphere(Offset, Radius);
|
||||
Gizmos.DrawWireSphere(Tail, Radius);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,12 +106,13 @@ namespace UniVRM10
|
|||
|
||||
private void OnDrawGizmos()
|
||||
{
|
||||
Gizmos.color = Color.green;
|
||||
foreach (var spring in SpringBone.Springs)
|
||||
{
|
||||
foreach (var (head, tail) in spring.EnumHeadTail())
|
||||
{
|
||||
Gizmos.DrawLine(head.transform.position, tail.transform.position);
|
||||
Gizmos.DrawSphere(tail.transform.position, head.m_jointRadius);
|
||||
Gizmos.DrawWireSphere(tail.transform.position, head.m_jointRadius);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user