Open Gakuto1112 opened 4 months ago
Do you mean partToWorldMatrix()
? getModelWorldPos()
isn't a method in Figura
theres also an option to update the matrix in first person
Do you mean
partToWorldMatrix()
?getModelWorldPos()
isn't a method in Figura
Oh sorry. You are right. models:getModelWorldPos()
is a self-defined function.
theres also an option to update the matrix in first person
Of course, "First-person matrices" option is enabled. (The UI is in Japanese. Sorry.)
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
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 partToWorldMatrixRaw
and partToWorldMatrix
recalculated it (like getPositionMatrix
)?
Edit: Nevermind, that could be breaking. A new function recalculatePartToWorldMatrix
wouldn't be, though, and would probably be easy to use.
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