About Store Forum Documentation Contact
Donations:
169$/mo



Post Reply 
Moving Cloth from one Position to another.
Author Message
runewake2 Offline
Member

Post: #1
Moving Cloth from one Position to another.
I'm making a game that involves the player jumping around a lot using a teleporter like device. This is not like the teleport tutorial where worlds change, instead the Player leaps about 7.5 meters towards an orb that they can throw.

This all works great, however, I recently added Cloth Physics for my characters clothing. This doesn't work so well. The Player's clothing ends up stuck in walls, ceilings etc. This pic shows what's happening.

[Image: 9083_16105.jpg]

I'm wondering if there is a way to move the Cloth with the Player.

Right now I am using

Code:
matrix(PlayerOrb.matrix);
krag.pos(matrix().pos);

to teleport the player and it's kinematic ragdoll (krag from Cloth tutorial) to another location.

Is there something I can add/change to make this work?

EDIT: right now I have rigged it up to recreate the cloth after every teleport. This works but seems like a bad solution.
(This post was last modified: 08-18-2012 10:54 PM by runewake2.)
08-18-2012 10:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Moving Cloth from one Position to another.
maybe you could try something like this:
REP(cloth.vtxs())cloth.vtxPos(i, cloth.vtxPos(i)+delta);
08-20-2012 11:09 PM
Find all posts by this user Quote this message in a reply
Post Reply