From 15c9c083cd14b99e0460a2a8930701ff053dfac1 Mon Sep 17 00:00:00 2001 From: MeFisto94 Date: Sun, 20 Mar 2016 10:11:04 +0100 Subject: [PATCH] Allow MotionEvents to be cloned --- .../main/java/com/jme3/cinematic/events/MotionEvent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java b/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java index dbb9b494c..fc277880b 100644 --- a/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java +++ b/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 jMonkeyEngine + * Copyright (c) 2009-2016 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -64,9 +64,9 @@ public class MotionEvent extends AbstractCinematicEvent implements Control, JmeC protected int currentWayPoint; protected float currentValue; protected Vector3f direction = new Vector3f(); - protected Vector3f lookAt; + protected Vector3f lookAt = Vector3f.ZERO; protected Vector3f upVector = Vector3f.UNIT_Y; - protected Quaternion rotation; + protected Quaternion rotation = Quaternion.IDENTITY; protected Direction directionType = Direction.None; protected MotionPath path; private boolean isControl = true;