Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any chance of an examples folder? #11

Open
The-GenghisJohn opened this issue Mar 9, 2020 · 2 comments
Open

Any chance of an examples folder? #11

The-GenghisJohn opened this issue Mar 9, 2020 · 2 comments

Comments

@The-GenghisJohn
Copy link

Been trying to figure this out. Want to attach this to a "models/hunter/plates/plate2x4.mdl" entity and have a sort of placeable scoreboard. I honestly cant figure out how to parent it to the entities position and angle, I also can't figure out how to make my entity still visible as well.

I figure a couple quick examples would do to help me figure this out.

@wyozi
Copy link
Contributor

wyozi commented Mar 9, 2020

Good idea although I don't have time to do that right now.

For attaching to entity, the "Using it inside an entity:" example in README should be the general way to do it. Note that position and angles there are relative to the entity orientation. You can also check #4 for an example orientation for a specific model to start with.

@Pdzly
Copy link

Pdzly commented Aug 6, 2021

if its still needed i think you want to do that? it will parent it to then entity (self)

Vector(0, 0, 50) = 0 pixel moved in X, 0 pixel moved in Y, 50 pixel moved in Z ( so that its not overlapping with the entity)

Angle(0, 90, 90) = so that its on the front side of the prop

if imgui.Entity3D2D(self, Vector(0, 0, 50), Angle(0, 90, 90), 0.1) then
-- render things

imgui.End3D2D()

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

No branches or pull requests

3 participants