Skip to content

➕ add set velocity and set angle velocity gates#3559

Open
Strand8319 wants to merge 5 commits intowiremod:masterfrom
Strand8319:new-gates
Open

➕ add set velocity and set angle velocity gates#3559
Strand8319 wants to merge 5 commits intowiremod:masterfrom
Strand8319:new-gates

Conversation

@Strand8319
Copy link
Copy Markdown
Contributor

why not?

@thegrb93
Copy link
Copy Markdown
Contributor

Needs clamps on the input values.

@Astralcircle
Copy link
Copy Markdown
Contributor

Needs clamps on the input values.

E2 doesn't do this, maybe it should do it too

@Strand8319
Copy link
Copy Markdown
Contributor Author

Needs clamps on the input values.

E2 doesn't do this, maybe it should do it too

You mean make e2 use WireLib clamp?

@Astralcircle
Copy link
Copy Markdown
Contributor

Just mentioning, not related to your PR

@Strand8319
Copy link
Copy Markdown
Contributor Author

Just mentioning, not related to your PR

Well, I can do it next day

Comment on lines +1248 to +1249
ang = clamp(Vector(ang.p, ang.y, ang.r))
phys:SetAngleVelocity(ang)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You turned the angle into a vector and broke the function

@Astralcircle
Copy link
Copy Markdown
Contributor

Oh my bad, actually SetAngularVelocity was taking a vector, change the gate to take VECTOR instead of ANGLE

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.

3 participants