Vector Swizzling and Property Access #35
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kayomn/ona#35
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Properties of
vec2
andvec3
objects in OnaScript cannot yet be accessed from within the context of the VM.Being primitive objects, they need special handling to support field access unlike dynamic objects. However, that handling will probably be faster, if not constant time, compared to dynamic objects which require dynamic lookup for their fields in all cases.
Swizzling would also be a nice feature, as too often I find myself using other game technologies like Godot where I am writing
Vector2(existingVec3.x, existingVec3.z)
instead of justexistingVec3.xz
.