Code: Select all
objectsInContact,_,forceDirectionAndAmplitude =sim.getContactInfo(sim.handle_all, box[i], index)
force = math.abs(forceDirectionAndAmplitude[1])+math.abs(forceDirectionAndAmplitude[2])+math.abs(forceDirectionAndAmplitude[3])
Code: Select all
objectsInContact,_,forceDirectionAndAmplitude =sim.getContactInfo(sim.handle_all, box[i], index)
force = math.abs(forceDirectionAndAmplitude[1])+math.abs(forceDirectionAndAmplitude[2])+math.abs(forceDirectionAndAmplitude[3])