bulky-insurance-39338
05/10/2023, 10:22 PMbulky-insurance-39338
05/10/2023, 10:22 PMable-action-74275
05/10/2023, 10:22 PMable-action-74275
05/10/2023, 10:24 PMable-action-74275
05/10/2023, 10:24 PMbulky-insurance-39338
05/10/2023, 10:25 PMbulky-insurance-39338
05/10/2023, 10:25 PMcoding
?bulky-insurance-39338
05/10/2023, 10:25 PMcausual
bar ?ambitious-knife-25690
05/10/2023, 10:26 PMbulky-insurance-39338
05/10/2023, 10:26 PMbulky-insurance-39338
05/10/2023, 10:26 PMbulky-insurance-39338
05/10/2023, 10:26 PMable-action-74275
05/10/2023, 10:27 PMbulky-insurance-39338
05/10/2023, 10:29 PMgraphic-snipped
without the code
who is using it ?)rich-horse-51130
05/11/2023, 5:14 AMrich-horse-51130
05/11/2023, 5:15 AMrich-horse-51130
05/11/2023, 5:15 AMrich-horse-51130
05/11/2023, 5:17 AMrich-horse-51130
05/11/2023, 5:18 AMtall-teacher-57409
05/11/2023, 7:29 AMtall-teacher-57409
05/11/2023, 7:29 AMtall-teacher-57409
05/11/2023, 7:30 AMtall-teacher-57409
05/11/2023, 9:22 AMhx
public static function lookAt(target:Vector3, position:Vector3, up:Vector3):Matrix4 {
var forward:Vector3 = target.subtract(position).normalize();
var right:Vector3 = up.cross(forward).normalize();
var newUp:Vector3 = forward.cross(right).normalize();
var lookAt:Matrix4 = new Matrix4();
lookAt.set(right.x, newUp.x, -forward.x, 0,
right.y, newUp.y, -forward.y, 0,
right.z, newUp.z, -forward.z, 0,
-right.dot(position), -newUp.dot(position), forward.dot(position), 1);
return lookAt;
}
does that look right?tall-teacher-57409
05/11/2023, 10:56 AMhallowed-ocean-84954
05/11/2023, 1:40 PMhallowed-ocean-84954
05/11/2023, 1:42 PMhallowed-ocean-84954
05/11/2023, 1:42 PM