Bugfix: bone context returns the length of the bone without taking model scale into account; that caused troubles during constraint's computations but should be used for bone debugger length (an appropriate notice is in the method's javadoc).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10940 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
b5357e96ec
commit
25e20509c6
@ -174,10 +174,15 @@ public class BoneContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* The method returns the length of the bone.
|
||||||
|
* If you want to use it for bone debugger take model space scale into account and do
|
||||||
|
* something like this:
|
||||||
|
* <b>boneContext.getLength() * boneContext.getBone().getModelSpaceScale().y</b>.
|
||||||
|
* Otherwise the bones might not look as they should in the bone debugger.
|
||||||
* @return the length of the bone
|
* @return the length of the bone
|
||||||
*/
|
*/
|
||||||
public float getLength() {
|
public float getLength() {
|
||||||
return length * bone.getModelSpaceScale().y;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user