Remove unused quat
This commit is contained in:
parent
dfad6902af
commit
f940e8566e
|
@ -18,8 +18,9 @@ class GetLocationNode extends LogicNode {
|
|||
var loc = object.transform.world.getLoc();
|
||||
|
||||
if (relative) {
|
||||
loc.sub(object.parent.transform.world.getLoc());
|
||||
|
||||
loc.sub(object.parent.transform.world.getLoc()); // Add parent location influence
|
||||
|
||||
// Convert vec to parent local space
|
||||
var vec = new Vec4();
|
||||
vec.x = loc.dot(object.parent.transform.right());
|
||||
vec.y = loc.dot(object.parent.transform.look());
|
||||
|
|
|
@ -2,7 +2,6 @@ package armory.logicnode;
|
|||
|
||||
import iron.object.Object;
|
||||
import iron.math.Vec4;
|
||||
import iron.math.Quat;
|
||||
import armory.trait.physics.RigidBody;
|
||||
|
||||
class SetLocationNode extends LogicNode {
|
||||
|
|
Loading…
Reference in a new issue