Note
this joint is not documented in the manual because it was developed to be used in the testbed. If you want to learn how to use the mouse joint, look at the testbed.
| Modifier and Type | Field and Description |
|---|---|
| private final Vector2 | |
| pack-priv final float[] | tmp
Use this to update the target point.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public float | |
| public float | |
| public Vector2 | |
| private native float | |
| private native float | |
| private native float | |
| private native void | |
| private native void | |
| private native void | |
| private native void | |
| private native void | |
| public void | |
| public void | |
| public void | |
| public void |
| target | back to summary |
|---|---|
| private final Vector2 target | |
| tmp | back to summary |
|---|---|
| pack-priv final float[] tmp Hides com. Use this to update the target point. | |
| MouseJoint | back to summary |
|---|---|
| public MouseJoint(World world, long addr) | |
| getDampingRatio | back to summary |
|---|---|
| public float getDampingRatio() Set/get the damping ratio (dimensionless). | |
| getFrequency | back to summary |
|---|---|
| public float getFrequency() Set/get the frequency in Hertz. | |
| getMaxForce | back to summary |
|---|---|
| public float getMaxForce() Set/get the maximum force in Newtons. | |
| getTarget | back to summary |
|---|---|
| public Vector2 getTarget() | |
| jniGetDampingRatio | back to summary |
|---|---|
| private native float jniGetDampingRatio(long addr) | |
| jniGetFrequency | back to summary |
|---|---|
| private native float jniGetFrequency(long addr) | |
| jniGetMaxForce | back to summary |
|---|---|
| private native float jniGetMaxForce(long addr) | |
| jniGetTarget | back to summary |
|---|---|
| private native void jniGetTarget(long addr, float[] target) | |
| jniSetDampingRatio | back to summary |
|---|---|
| private native void jniSetDampingRatio(long addr, float ratio) | |
| jniSetFrequency | back to summary |
|---|---|
| private native void jniSetFrequency(long addr, float hz) | |
| jniSetMaxForce | back to summary |
|---|---|
| private native void jniSetMaxForce(long addr, float force) | |
| jniSetTarget | back to summary |
|---|---|
| private native void jniSetTarget(long addr, float x, float y) | |
| setDampingRatio | back to summary |
|---|---|
| public void setDampingRatio(float ratio) Set/get the damping ratio (dimensionless). | |
| setFrequency | back to summary |
|---|---|
| public void setFrequency(float hz) Set/get the frequency in Hertz. | |
| setMaxForce | back to summary |
|---|---|
| public void setMaxForce(float force) Set/get the maximum force in Newtons. | |
| setTarget | back to summary |
|---|---|
| public void setTarget(Vector2 target) Use this to update the target point. | |