3
我是Unity新手,嘗試創建一個像剛體擺動一樣移動的圓柱體。我在缸體頂部使用鉸鏈接頭,並使用電機來增加力量。如何使用unity3d來保持圓柱體/鐘擺上的位置
當我停止施加力時,如何讓氣缸保持住位置而不回落到「死」位置?
JointMotor m = new JointMotor();
m.force = 10000;
m.targetVelocity = 0;
m.freeSpin = true;
GetComponent<HingeJoint>().motor = m;