mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +02:00
remove unused code
This commit is contained in:
parent
7fd88793dc
commit
47504a068e
2 changed files with 0 additions and 23 deletions
|
@ -979,8 +979,6 @@ function mouseClickEvent(event) {
|
||||||
|
|
||||||
if (!event.isShifted) {
|
if (!event.isShifted) {
|
||||||
selectionManager.setSelections([foundEntity]);
|
selectionManager.setSelections([foundEntity]);
|
||||||
Vec3.print("found object, intersection = ", result.intersection);
|
|
||||||
selectionManager.setPickPlanePosition(result.intersection);
|
|
||||||
} else {
|
} else {
|
||||||
selectionManager.addEntity(foundEntity, true);
|
selectionManager.addEntity(foundEntity, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,11 +87,6 @@ SelectionManager = (function() {
|
||||||
y: 0,
|
y: 0,
|
||||||
z: 0
|
z: 0
|
||||||
};
|
};
|
||||||
that.pickPlanePosition = {
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
z: 0
|
|
||||||
};
|
|
||||||
|
|
||||||
that.saveProperties = function() {
|
that.saveProperties = function() {
|
||||||
that.savedProperties = {};
|
that.savedProperties = {};
|
||||||
|
@ -119,13 +114,6 @@ SelectionManager = (function() {
|
||||||
that._update();
|
that._update();
|
||||||
};
|
};
|
||||||
|
|
||||||
that.setPickPlanePosition = function(position) {
|
|
||||||
that.pickPlanePosition.x = position.x;
|
|
||||||
that.pickPlanePosition.y = position.y;
|
|
||||||
that.pickPlanePosition.z = position.z;
|
|
||||||
Vec3.print("that.pickPlanePosition = ", that.pickPlanePosition);
|
|
||||||
};
|
|
||||||
|
|
||||||
that.addEntity = function(entityID, toggleSelection) {
|
that.addEntity = function(entityID, toggleSelection) {
|
||||||
if (entityID) {
|
if (entityID) {
|
||||||
var idx = -1;
|
var idx = -1;
|
||||||
|
@ -2327,15 +2315,6 @@ SelectionDisplay = (function() {
|
||||||
|
|
||||||
var vector = Vec3.subtract(pick, initialXZPick);
|
var vector = Vec3.subtract(pick, initialXZPick);
|
||||||
|
|
||||||
Vec3.print("Pick Plane Position", translateXZTool.pickPlanePosition);
|
|
||||||
|
|
||||||
/*
|
|
||||||
if (pickRay.origin.y < this.pickPlanePosition.y) {
|
|
||||||
vector.x *= -1.0;
|
|
||||||
vector.z *= -1.0;
|
|
||||||
} */
|
|
||||||
|
|
||||||
|
|
||||||
// If shifted, constrain to one axis
|
// If shifted, constrain to one axis
|
||||||
if (event.isShifted) {
|
if (event.isShifted) {
|
||||||
if (Math.abs(vector.x) > Math.abs(vector.z)) {
|
if (Math.abs(vector.x) > Math.abs(vector.z)) {
|
||||||
|
|
Loading…
Reference in a new issue