Vector.truncate(length) #9020
Closed
feois
started this conversation in
Engine Core
Replies: 1 comment 2 replies
-
vectors already have a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add a built-in method to truncate vector to given length. While it can be easily implemented as
vec * minf(1.0, len / vec.length())
, it's a hassle to write, and if it's built-in, there can be some hacky way to optimize if possible.Beta Was this translation helpful? Give feedback.
All reactions