Implemented KRNode::getWorldRotation()
Implemented KRNode::getWorldScale() Implemented KRNode::getWorldTranslation() --HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40204
This commit is contained in:
@@ -157,14 +157,15 @@ const KRVector3 &KRNode::getInitialLocalRotation() {
|
||||
return m_initialLocalRotation;
|
||||
}
|
||||
|
||||
const KRVector3 &KRNode::getWorldTranslation() {
|
||||
return m_localTranslation;
|
||||
const KRVector3 KRNode::getWorldTranslation() {
|
||||
return KRMat4::Dot(getModelMatrix(), KRVector3::Zero());
|
||||
}
|
||||
const KRVector3 &KRNode::getWorldScale() {
|
||||
return m_localScale;
|
||||
|
||||
const KRVector3 KRNode::getWorldScale() {
|
||||
return KRMat4::DotNoTranslate(getModelMatrix(), m_localScale);
|
||||
}
|
||||
const KRVector3 &KRNode::getWorldRotation() {
|
||||
return m_localRotation;
|
||||
const KRVector3 KRNode::getWorldRotation() {
|
||||
return KRMat4::DotNoTranslate(getModelMatrix(), m_localRotation);
|
||||
}
|
||||
|
||||
std::string KRNode::getElementName() {
|
||||
|
||||
@@ -65,9 +65,9 @@ public:
|
||||
const KRVector3 &getInitialLocalScale();
|
||||
const KRVector3 &getInitialLocalRotation();
|
||||
|
||||
const KRVector3 &getWorldTranslation();
|
||||
const KRVector3 &getWorldScale();
|
||||
const KRVector3 &getWorldRotation();
|
||||
const KRVector3 getWorldTranslation();
|
||||
const KRVector3 getWorldScale();
|
||||
const KRVector3 getWorldRotation();
|
||||
|
||||
virtual KRAABB getBounds();
|
||||
const KRMat4 &getModelMatrix();
|
||||
|
||||
Reference in New Issue
Block a user