Help Cloning A Rope Exactly - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help Cloning A Rope Exactly (/thread-2216.html) |
Cloning A Rope Exactly - alininavcisi - 02-05-2020 Hello. I want help about cloning a rope in runtime. I have a rope attached to player's hand. I need to clone it exactly with old one, with positions of particles i meant. Old one will be stay in game for 5-6 seconds, new one will be new rope of the hand. And old rope vs new rope shouldn't collide so I have made layer matrix settings. I have used saving state and load immediately, but there are also some obstacles in map, rope may go through the walls, I am really stucked. Result : https://streamable.com/digvso Save/Load script : Code: public ObiActorBlueprint Save() Thank you. RE: Cloning A Rope Exactly - josemendez - 03-05-2020 Hi there, In answered to your PM. However, I don't understand what's going on in the video you posted here. I assume you're saving the rope state at some point in time (when the character arrives at the sofa?) and then loading it. If the copy is done correctly, and the original rope does not intersect walls/furniture, the copy shouldn't either (after all, particle positions are copied from the original rope). Note that if the original rope insterects something, the copy will too. Quote:new rope shouldn't collide so I have made layer matrix settings Obi does not use layer matrix to filter out collisions, as checking the matrix for each collision would be really inefficient when you have several thousands of contacts each frame (and in a particle system, you do). It uses phases instead. Particles/collider with the same phase will ignore each other. If they have different phases, they will collide with each other. See: http://obi.virtualmethodstudio.com/tutorials/collisions.html |