I’ve tried using the script in this post before, but the quat.transformVector(pc.Vec3.FORWARD, transformedForward
line returns an error saying quat
is undefined. Was this an engine thing that got changed or do I need to define quat
myself?
1 Like
The function that you are using expects a quaternion to be passed as a param
SomeScript.prototype.getYaw = function (quat) {
If it is undefined, than it means it has no value (ie null) so either the function was called without a parameter or the parameter passed is null or undefined.
Yeah, I didn’t give the function a parameter.