MouseMovement mapped to cloth

Vineeth@nxOgre

09-04-2008 10:56:27

I have to convert mouse movement to object movement in 3d.The object is a cloth vertex

I can use
cloth->attachVertextoGlobalPosition(vertexId,Pos);
The mouse movemnts xy values should be mapped to 3 D co-ordinates (Pos )for the cloth vertex to be moved
I gor the vertex ID by using ray caster.A ray was casted from camera to clothte return the vertex

I know that the cloth can be attached to a rigid body.ut for testing purpose I want to do it using mouse

Please give me an idea

Vineeth@nxOgre

10-04-2008 05:21:35

Please someone please help me out .

Can I reverse the Camera direction and convert this vector to a vector that varies with mouse relative postion and then translate the vertex in this vector

What are the alternatives

Vineeth@nxOgre

10-04-2008 09:56:49

Also I wanrt to tear the cloth

I have the vertex but I dont know how to give vertex normal.
mCake->mTargetCloth->tearVertex(mClothRay->getVertex(),Normal??)