Merge pull request #548 from kevinresol/patch-2

FollowCamera: use LateUpdate to avoid sync issues
This commit is contained in:
Lubos Lenco 2018-03-08 09:28:52 +01:00 committed by GitHub
commit 6fe2caad74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ class FollowCamera extends iron.Trait {
}
});
notifyOnUpdate(function() {
notifyOnLateUpdate(function() {
if(!disabled){
if(targetObj != null) {
if(lerp){