06-07-2023, 10:16 AM
(This post was last modified: 06-07-2023, 10:20 AM by EunBhin Park.)
(06-07-2023, 10:03 AM)호세멘데즈 Wrote: 안녕하세요,
입자 위치/회전을 보내고 적용하는 방법에 대한 정보 없이는 많은 도움을 드릴 수 없습니다. 시뮬레이션에서 보낸 것과 동일한 한 수신 측이 동일하게 보이고 동작해야 한다고 추론할 수 있습니다.
친절한 안부,
for (int i = 0; i < actor.solverIndices.Length; ++i)
{
rope.solver.externalForces[actor.solverIndices[i]] = otherRope.solver.externalForces[actor.solverIndices[i]];
rope.solver.externalTorques[actor.solverIndices[i]] = otherRope.solver.externalTorques[actor.solverIndices[i]];
rope.solver.positions[actor.solverIndices[i]] = otherRope.solver.positions[actor.solverIndices[i]];
rope.solver.velocities[actor.solverIndices[i]] = otherRope.solver.velocities[actor.solverIndices[i]];
}
In this way, the position and rotation values are passed.
The 'otherRope' is the rope that gives the value, and the 'rope' is the rope that receives the value.
Even if i pass an External Forces and an External Torques, when tension is applied, the rope that receives the value does not move the same as the rope that gives the value.