IssueRaiser

Allow to get multiple coordinates of vectors at the same time (swizzling)

**Describe the project you are working on:** 3D top down shooter **Describe the problem or limitation you are having in your project:** Operations on different vectors become rather cumbersome when working separately on coordinates: ```gdscript velocity = Vector3(6, 1, 6) velocity.x *= 2 velocity.z *= 2 ``` **Describe the feature / enhancement and how it helps to overcome the problem or limitation:** It would be really useful to be able to access multiple coordinates at the same time like in GLSL: ```gdscript velocity = Vector3(6, 1, 6) velocity.xz *= 2 ```

Posted by Nolkaloid on Apr 18, 2020, 8:48 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

reliability (Other)

Allow to get multiple coordinates of vectors at the same time (swizzling)

NolkaloidApr 18, 2020, 8:48 PM

**Describe the project you are working on:** 3D top down shooter **Describe the problem or limitation you are having in your project:** Operations on different vectors become rather cumbersome when working separately on coordinates: ```gdscript velocity = Vector3(6, 1, 6) velocity.x *= 2 velocity.z *= 2 ``` **Describe the feature / enhancement and how it helps to overcome the problem or limitation:** It would be really useful to be able to access multiple coordinates at the same time like in GLSL: ```gdscript velocity = Vector3(6, 1, 6) velocity.xz *= 2 ```

Comments (0)

No comments yet. Start the discussion.

Comment on this issue