Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

refactor(relativeCoords): allow passing full rotation#703

Merged
thelindat merged 3 commits intooverextended:masterfrom
dolutattoo:master
Feb 12, 2025
Merged

refactor(relativeCoords): allow passing full rotation#703
thelindat merged 3 commits intooverextended:masterfrom
dolutattoo:master

Conversation

@dolutattoo
Copy link
Contributor

Allow passing a full rotation (vector3) to get the relative coords.
Usefull if the entity is rotated on other axis than just vertical.
This prevent to use a vector4 as first arg though.

Dolu added 2 commits February 1, 2025 19:07
Allow passing a full rotation (vector3) to get the relative coords.
Usefull if the entity is rotated on other axis than just vertical.
This prevent to use a vector4 as first arg though.
@thelindat
Copy link
Member

This prevent to use a vector4 as first arg though.

Check if coords.w exists, rotation is a vector3, and offset is defined.

@dolutattoo
Copy link
Contributor Author

This prevent to use a vector4 as first arg though.

Check if coords.w exists, rotation is a vector3, and offset is defined.

Not sure if it's good to rename params in overlads but at least it's explicit like this

@thelindat thelindat merged commit f4f1596 into overextended:master Feb 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants