Change LookBehavior target initialization location
This commit is contained in:
parent
68874751da
commit
956e212e39
@ -12,7 +12,7 @@ public class LookBehavior extends Behavior {
|
|||||||
public static final LookBehavior INSTANCE = new LookBehavior();
|
public static final LookBehavior INSTANCE = new LookBehavior();
|
||||||
|
|
||||||
public LookBehavior() {
|
public LookBehavior() {
|
||||||
|
target = Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -21,7 +21,7 @@ public class LookBehavior extends Behavior {
|
|||||||
* getFirst() -> yaw
|
* getFirst() -> yaw
|
||||||
* getSecond() -> pitch
|
* getSecond() -> pitch
|
||||||
*/
|
*/
|
||||||
private Optional<Tuple<Float, Float>> target = Optional.empty();
|
private Optional<Tuple<Float, Float>> target;
|
||||||
|
|
||||||
public void updateTarget(Tuple<Float, Float> target) {
|
public void updateTarget(Tuple<Float, Float> target) {
|
||||||
this.target = Optional.of(target);
|
this.target = Optional.of(target);
|
||||||
|
Loading…
Reference in New Issue
Block a user