[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Monthly Archives]
[List Home]
[Virtools] CKIkJoint fails
- Subject: [Virtools] CKIkJoint fails
- From: "Rudi Lauster" <Rudi.Lauster@raysono.com>
- Date: Mon, 11 Feb 2002 16:50:04 +0100
- Importance: Normal
Hello everybody,
I used the CKIkJoint structure but it behaved strange. This is my code:
CKIkJoint upperArmConstraint;
CKIkJoint foreArmConstraint;
upperArm->SetFlags(upperArm->GetFlags()|CK_3DENTITY_IKJOINTVALID);
upperArm->GetRotationJoint( &upperArmConstraint );
upperArmConstraint.m_Flags = CK_IKJOINT_ACTIVE_Z|CK_IKJOINT_LIMIT_Y;
upperArmConstraint.m_Min.x = (float)0;
upperArmConstraint.m_Min.y = (float)0;
upperArmConstraint.m_Min.z = (float)-10*PI/180.0;
upperArmConstraint.m_Max.x = (float)0;
upperArmConstraint.m_Max.y = (float)0;
upperArmConstraint.m_Max.z = (float)10*PI/180.0;
upperArm->SetRotationJoint( &upperArmConstraint );
...
while( ... )
...
upperArm->FitToJoint;
...
The funny thing in that piece of code is that I want to restrain the angle
span of the rotation around the z axis but I have to set the flag
CK_IKJOINT_LIMIT_Y.
When I added another degree of freedom - for example the x axis - the angle
restriction completely failed.
What did I do wrong ? The virtools sdk-documentation lacks of a detailed
description for CKIkJoint and CKIkBodyPart.
Can anybody help me ? I am completly despaired because I NEED that
functionality.
Thanks a lot and regards,
Rudi Lauster
>Hello,
>Using the CKIkJoint structure and the relevant flags you can set up limits
>to
>the rotation of a body-part joint.
>Beware the min has to be negative and max to be positive and both are set
>for
>the whole joint.
>Alternatively, look at:
>http://www.theswapmeet.com/ubb/Forum5/HTML/000158.html
>
>Best regards,
>
>Christian Garnier.
>
>----- Original Message -----
>From: "Urs Stutz" <outside@raysono.com>
>To: <virtools-user-group@lists.theswapmeet.com>
>Sent: Thursday, February 07, 2002 11:38 AM
>Subject: [Virtools] angle constraints in virtools
>
>
> > Hi Everybode,
> >
> > I'm currently working on a virtools project where we control the arms of
a
> > character by the IK position BB. We get the position data of the ankles
> > from a data glove.
> >
> > The problem is, for some movements, the arms deform in an unnatural way,
> > e.g. the elbows bend in the wrong direction, the arms intersect the
>body...
> >
> > Is it possible in virtools to restrain the angles of the bones to
certain
> > values?
> >
> > thanks
> >
> > Urs Stutz
> > Ray Sono AG
> >
> > ...............................................................
> > Distributed via the virtools-user-group list:
>http://www.theswapmeet.com/numl.html
> > To reply to the list instead of its author, use "Reply to All"
> > To unsubscribe: send "unsubscribe virtools-user-group" to
>Majordomo@lists.theswapmeet.com
> > To subscribe: send "subscribe virtools-user-group" to
>Majordomo@lists.theswapmeet.com
> > To post a message: send it to virtools-user-group@lists.theswapmeet.com
> > ...............................................................
...............................................................
Distributed via the virtools-user-group list: http://www.theswapmeet.com/numl.html
To reply to the list instead of its author, use "Reply to All"
To unsubscribe: send "unsubscribe virtools-user-group" to Majordomo@lists.theswapmeet.com
To subscribe: send "subscribe virtools-user-group" to Majordomo@lists.theswapmeet.com
To post a message: send it to virtools-user-group@lists.theswapmeet.com
...............................................................
Follow-Ups: