- Imported animations now have the auto_play and loop flags set to false by default - Implemented Pre-Rotation, Post-Rotation, Scale Offset, Rotate Offset, Scale Pivot, and Rotate Pivot transform attributes. - Reduced use of euler angles, replacing them with Quaternions where possible - Fixed bug with incorrect Y rotation in KRMat4::rotate - Material / GL Context changes have been optimized to reduce redundant glUniform calls - New KRMesh format implemented, with support for importing BindPose matrices - Fixed bug that caused a duplicate "default_camera" node to be added rather than picking up an existing "default_camera" node imported from FBX. This enables animations to drive the camera correctly. - Implemented KRVector3::Scale - Implemented KRVector3::KRVector3(double *v);
31 lines
404 B
C++
31 lines
404 B
C++
//
|
|
// KRBehavior.cpp
|
|
// Kraken
|
|
//
|
|
// Created by Kearwood Gilbert on 2013-05-17.
|
|
// Copyright (c) 2013 Kearwood Software. All rights reserved.
|
|
//
|
|
|
|
#include "KRBehavior.h"
|
|
#include "KRNode.h"
|
|
|
|
KRBehavior::KRBehavior()
|
|
{
|
|
__node = NULL;
|
|
}
|
|
|
|
KRBehavior::~KRBehavior()
|
|
{
|
|
|
|
}
|
|
|
|
KRNode *KRBehavior::getNode() const
|
|
{
|
|
return __node;
|
|
}
|
|
|
|
void KRBehavior::__setNode(KRNode *node)
|
|
{
|
|
__node = node;
|
|
}
|