stub in snap but requires more work and validating removal of some mouse dragging code
This commit is contained in:
parent
75f42428d4
commit
caeba6a48d
5 changed files with 38 additions and 16 deletions
|
|
@ -772,18 +772,18 @@ gapp.register("moto.space", [], (root, exports) => {
|
|||
requestRefresh();
|
||||
}
|
||||
|
||||
function alignTracking(point, rot, out) {
|
||||
if (point && rot) {
|
||||
alignedTracking = true;
|
||||
trackPlane.position.set(point.x, point.y, point.z);
|
||||
trackPlane.rotation.set(rot.x, rot.y, rot.z);
|
||||
trackDelta = out;
|
||||
} else {
|
||||
alignedTracking = false;
|
||||
trackPlane.position.set(0, 0, 0);
|
||||
trackPlane.rotation.set(PI2, 0, 0);
|
||||
}
|
||||
}
|
||||
// function alignTracking(point, rot, out) {
|
||||
// if (point && rot) {
|
||||
// alignedTracking = true;
|
||||
// trackPlane.position.set(point.x, point.y, point.z);
|
||||
// trackPlane.rotation.set(rot.x, rot.y, rot.z);
|
||||
// trackDelta = out;
|
||||
// } else {
|
||||
// alignedTracking = false;
|
||||
// trackPlane.position.set(0, 0, 0);
|
||||
// trackPlane.rotation.set(PI2, 0, 0);
|
||||
// }
|
||||
// }
|
||||
|
||||
function cca(c) {
|
||||
return c.charCodeAt(0);
|
||||
|
|
@ -1100,7 +1100,7 @@ gapp.register("moto.space", [], (root, exports) => {
|
|||
update: requestRefresh,
|
||||
|
||||
setAntiAlias(b) { antiAlias = b ? true : false },
|
||||
alignTracking: alignTracking,
|
||||
// alignTracking: alignTracking,
|
||||
raycast: intersect,
|
||||
|
||||
event: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue