Skip to content

(AntiBan+loop.lua Định vi#1

Open
nguyentrungkien6699254-creator wants to merge 1 commit into
MasterScott:mainfrom
nguyentrungkien6699254-creator:patch-1
Open

(AntiBan+loop.lua Định vi#1
nguyentrungkien6699254-creator wants to merge 1 commit into
MasterScott:mainfrom
nguyentrungkien6699254-creator:patch-1

Conversation

@nguyentrungkien6699254-creator

Copy link
Copy Markdown

void DrawSkeleton(Entity entity, Matrix4x4 camMatrix, ImDrawListPtr drawList, float screenWidth, float screenHeight)
{
uint colorBone = ColorToUint32(Color.Red);
float boneRadius = 3.0f;

Vector3[] bones = new Vector3[]
{
    entity.head,
    entity.Spine,
    entity.root,
    entity.LeftShoulder,
    entity.RightShoulder,
    entity.LeftElbow,
    entity.RightElbow,
    entity.LeftWrist,
    entity.RightWrist,
    entity.LeftHand,
    entity.RightHand,
    entity.LeftHip,
    entity.RightHip,
    entity.LeftKnee,
    entity.RightKnee,
    entity.LeftAnkle,
    entity.RightAnkle,
    entity.LeftFoot,
    entity.RightFoot
};

foreach (Vector3 bone in bones)
{
    Vector2 screenPos = Core.W2S(bone, camMatrix);

    if (screenPos.X > 0 && screenPos.X < screenWidth && screenPos.Y > 0 && screenPos.Y < screenHeight)
    {
        drawList.AddCircleFilled(screenPos, boneRadius, colorBone);
    }
}

}``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant