-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward Vector #63
Comments
Perhaps I am misunderstanding this but isn't this just forward in local space but translated to world space? Can't this computed trivially with the object transform matrix and some units vectors? |
Yes, I think you are right. |
The only complication I could see would be if we had a parenting system. In which case we would have to transverse up the tree to learn the combined world matrix. Where would we want such a Should we implement it now or wait until we have Parent components? If we add a parent component I would except we would need read access to World so that we could look up the transforms and parents components recursivly. |
I was thinking about parenting. I see it using a new |
I was thinking of implementing my own |
We need a function to calculate the forward vector. It is daily bread when you want to move some object in the direction its facing. Like this:
https://docs.unity3d.com/ScriptReference/Transform-forward.html
https://docs.unrealengine.com/en-US/BlueprintAPI/Utilities/Transformation/GetForwardVector/index.html
It will be handle to also implement up and right.
The text was updated successfully, but these errors were encountered: