Restarting an Effect
Hi Yurii - I notice in your docs you state:
effect.resetPosition(
[x, y, z], // new effect's position (pass null if you don't want to reset position)
[x, y, z, w] // new effect's rotation quaternion (pass null if you don't want to reset rotation)
);
Except I am seeing the signature like this in the typescript def:
restart(position: [], rotation: number): void;
Here, neither of these properties appear optional, and also I believe that by specifying the type as position: []
that you are actually forcing this to be a permanently empty array, and according to the doc rotation looks like it should be an array not a number?
What I think you may have intended is :
restart(position?: number[], rotation?: number[]): void;
It does actually work if I pass null into the method, but the current typescript def will not allow me to pass in values.
Please share your thoughts.
Edited by Frank McPolin