artofillusion.animation.distortion
Class IKDistortion

java.lang.Object
  extended by artofillusion.animation.distortion.IKDistortion
All Implemented Interfaces:
Distortion

public class IKDistortion
extends java.lang.Object
implements Distortion

This is a distortion which applies constraints to an object through inverse kinematics.


Constructor Summary
IKDistortion(boolean[] locked, Vec3[] target, double weight, Actor actor)
           
 
Method Summary
 Distortion duplicate()
          Create a duplicate of this object.
 boolean isIdenticalTo(Distortion d)
          Determine whether this distortion is identical to another one.
 void setPreviousDistortion(Distortion previous)
          Set another distortion which should be applied before this one.
 Mesh transform(Mesh obj)
          Apply the Distortion, and return a transformed mesh.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IKDistortion

public IKDistortion(boolean[] locked,
                    Vec3[] target,
                    double weight,
                    Actor actor)
Method Detail

setPreviousDistortion

public void setPreviousDistortion(Distortion previous)
Set another distortion which should be applied before this one. This allows Distortions to be chained.

Specified by:
setPreviousDistortion in interface Distortion

isIdenticalTo

public boolean isIdenticalTo(Distortion d)
Determine whether this distortion is identical to another one.

Specified by:
isIdenticalTo in interface Distortion

duplicate

public Distortion duplicate()
Create a duplicate of this object.

Specified by:
duplicate in interface Distortion

transform

public Mesh transform(Mesh obj)
Apply the Distortion, and return a transformed mesh.

Specified by:
transform in interface Distortion


Copyright © 1999-2008 by Peter Eastman.