浏览代码

Update README.md

/main
GitHub 3 年前
当前提交
2b36ae05
共有 1 个文件被更改,包括 32 次插入2 次删除
  1. 34
      README.md

34
README.md


# unity-inverse-dynamics-demo
A small project showing off the Inverse dynamics available in Unity
# Unity Inverse Dynamics demo project
A project containing demo scenes showing off the Inverse dynamics features available with Articulation Bodies
## Counteracting Gravity forces
Use `ArticulationBody.GetJointGravityForces(List<float> forces)` to get the forces required to counteract gravity. Applying them directly will negate the effect of gravity on the Articulation. It also serves to show how much strain there is on the joints caused by gravity.
![ID Gravity Demo](/Demo_gifs/ID_GravityForces_Demo.gif)
## Counteracting Coriolis/Centrifugal forces
Use `ArticulationBody.GetJointCoriolisCentrifugalForces(List<float> forces)` to get the forces required to counteract coriolis and centrifugal effects. Applying them directly will negate the effect of Coriolis and Centrifugal forces on the articulation.
![ID Coriolis Applied](/Demo_gifs/ID_ApplyingCoriolisForces.gif)
Otherwise, this method can tell you what is the effect of coriolis and centrifugal forces on your articulation
![ID Coriolis Centrifugal Demo](/Demo_gifs/ID_CoriolisCentrifugal_Demo.gif)
## Getting the Articulation Drive forces
Use `ArticulationBody.GetDriveForces(List<float> forces)` to get the forces applied by each Articulation Drive in the whole articulation chain. \
Use the `ArticulationBody.driveForce` property to get the forces applied by the Articulation Drive that is attached to the body.
![ID Drive forces Demo](/Demo_gifs/ID_DriveForces_Demo.gif)
## Getting forces required to reach a specific acceleration
Use `ArticulationBody.GetJointForcesForAcceleration(ArticulationReducedSpace acceleration)` to get the forces needed to reach the provided acceleration in reduced space. This method works on the specific Articulation Body and not the whole chain.
![ID Forces For acceleration](/Demo_gifs/ID_ForcesForAcceleration_Demo.gif)
正在加载...
取消
保存