-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
models:partToWorldMatrix() does not update #215
Comments
Do you mean |
theres also an option to update the matrix in first person |
Oh sorry. You are right. |
This is expected. partToWorldMatrix is the cached result of the previous time the part rendered, and will not update when the part does not render. First Person Matrices has to do with Vanilla Parts having their getOriginRot updated in first person, not partToWorldMatrix |
I see. I thought that it is a specification of Figura, but I thought that it might be a bug, so I posted this. |
What if, for ease-of-use purposes, the existing behavior was moved to something like Edit: Nevermind, that could be breaking. A new function |
Description
models:getModelWorldPos()
models:partToWorldMatrix()
does not update its matrix in first person perspective if the model's parent type isItem
.This issue does not occur if the parent type of the model is not
item
or in third person perspective.How to reproduce
Item
.models:getModelWorldPos()
models:partToWorldMatrix()
in first person perspective.I attached the example avatar that describes this issue.
This avatar has two anchors that emit particles. One is at the top of the player head and emits green particles, and another one is at the item that the player holds and emits red particles. In first person perspective, green particles are following their anchor. However, red particles are standing still in the place where they were last in the third-person perspective.
Expected behavior
The item model matrix will update even if in first person perspective. In case of the example avatar, red particles still follow in first person perspective.
Enviroments
No other mod installed.
Attachments
TestAvatar.zip
The text was updated successfully, but these errors were encountered: