Jump to content
This Topic

Recommended Posts

Posted

I'm also thinking about composite models: afaik, in Crysis different enemies was constructed in such way, with different legs/bodies and so on.

But how easy it would be to animate?

Working on LeaFAQ :)

Posted

In that post i was talking about something like this

TVec3 restPos = EntityPosition( m_handRest, 1);
       TVec3 handPos = EntityPosition( m_handTrigger, 1);
       float diffx = handPos.X - restPos.X;
       float diffy = handPos.Y - restPos.Y;
       float diffz = handPos.Z - restPos.Z;
       AlignToVector( m_entity, Vec3(diffx,diffy,diffz),3 );

       TVec3 pos = EntityPosition(m_entity,1);
       trigPos = EntityPosition(m_triggerBone,1);
       diffx = pos.X - trigPos.X;
       diffy = pos.Y - trigPos.Y;
       diffz = pos.Z - trigPos.Z;

       trigPos = EntityPosition( m_handTrigger, 1);
       trigPos.X += diffx;
       trigPos.Y += diffy;
       trigPos.Z += diffz;
       PositionEntity(m_entity, trigPos, 1);

 

Source

Working on LeaFAQ :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...