Character test example doesn’t work correctly..

Software: Away3D 4.x

Mr Margaret Scratcher, Sr. Member
Posted: 13 October 2011 05:17 AM   Total Posts: 344

Bit of an odd one - I can rotate the character around, but if I try to move it I get:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at away3d.animators::SmoothSkeletonAnimator/play()[C:UsersDellendDesktopDesign_stuffAway3Daway3d-core-fp11srcaway3danimatorsSmoothSkeletonAnimator.as:61]
at CharacterDemo/handleEnterFrame()[C:UsersDellendDesktopDesign_stuffAway3Dawayphysics-examples-fp11srcCharacterDemo.as:271]

And it opens up SmoothSkeletonAnimator at clip.reset:

var clip SkeletonTimelineClipNode;

   
_crossFadeTime crossFadeTime;

   if (
_activeClipIndex != -1{
    _fadeOutClips
.push(_activeClipIndex);
    
// diminish per second
    
_fadeOutSpeeds.push(_mainWeight crossFadeTime 1000);
   
}

   clip 
_clips[sequenceName];
          
clip.reset();
   if (
clip && clip.duration 0{
    _activeClipIndex 
_lerpNode.getInputIndex(clip);
    var 
int _fadeOutClips.indexOf(_activeClipIndex);
    if (
!= -1{
     _fadeOutClips
.splice(i1);
     
_fadeOutSpeeds.splice(i1);
    
}
   } 


Confused…

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X