Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Weapons being left behind when character moves...; Irritating glitch, can anyone help
Topic Started: Mar 25 2009, 03:19 AM (218 Views)
Jerreldulay
Member Avatar
Advanced Member
[ *  *  * ]
Hey guys, I'm having a problem with my project. My character model is holding items and weapons (attached to the bones using matrices), and everything appears to be fine until the character begins moving. The item being attached to the bones appear to be left behind by a few frames, so that when the character jumps, animations, or turns, the weapon seems to hover outside of their hands.

Before I implemented Move and AttemptMoveToPosition, I was just using GM's movement functions, and the weapon attaching worked perfectly, perhaps even better than perfectly. I know that the glitch is caused by the implementation of Move and AttemptMoveToPosition, but I have run out of ideas to try and fix this.

Would anyone have any idea on what I can do about this? Thanks heaps in advance.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
Blame the order of GM's steps. Just a result of not planning everything to the dots and crosses.

Um, try that UpdateSkeleton thing before any matrix calls. Normally, it'd be on time, but you're getting the position before U3D has a chance to update them automatically.
Blog|EHS
Offline Profile Quote Post Goto Top
 
Jerreldulay
Member Avatar
Advanced Member
[ *  *  * ]
Sharik!! You rox0rs my b0x0rs. I owe you my first born child.

I added the UpdateSkeleton() to the item being attached before calling the bone rotations.

All is well!! Thanks tons!
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply