public abstract class PhysicsJoint
extends java.lang.Object
implements com.jme3.export.Savable
PhysicsJoint - Basic Phyiscs Joint
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
collisionBetweenLinkedBodys |
protected PhysicsRigidBody |
nodeA |
protected PhysicsRigidBody |
nodeB |
protected long |
objectId |
protected com.jme3.math.Vector3f |
pivotA |
protected com.jme3.math.Vector3f |
pivotB |
| Constructor and Description |
|---|
PhysicsJoint() |
PhysicsJoint(PhysicsRigidBody nodeA,
PhysicsRigidBody nodeB,
com.jme3.math.Vector3f pivotA,
com.jme3.math.Vector3f pivotB) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
destroys this joint and removes it from its connected PhysicsRigidBodys joint lists
|
protected void |
finalize() |
float |
getAppliedImpulse() |
PhysicsRigidBody |
getBodyA() |
PhysicsRigidBody |
getBodyB() |
long |
getObjectId() |
com.jme3.math.Vector3f |
getPivotA() |
com.jme3.math.Vector3f |
getPivotB() |
boolean |
isCollisionBetweenLinkedBodys() |
void |
read(com.jme3.export.JmeImporter im) |
void |
setCollisionBetweenLinkedBodys(boolean collisionBetweenLinkedBodys)
toggles collisions between linked bodys
joint has to be removed from and added to PhyiscsSpace to apply this. |
void |
write(com.jme3.export.JmeExporter ex) |
protected long objectId
protected PhysicsRigidBody nodeA
protected PhysicsRigidBody nodeB
protected com.jme3.math.Vector3f pivotA
protected com.jme3.math.Vector3f pivotB
protected boolean collisionBetweenLinkedBodys
public PhysicsJoint()
public PhysicsJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, com.jme3.math.Vector3f pivotA, com.jme3.math.Vector3f pivotB)
pivotA - local translation of the joint connection point in node ApivotB - local translation of the joint connection point in node Bpublic float getAppliedImpulse()
public long getObjectId()
public boolean isCollisionBetweenLinkedBodys()
public void setCollisionBetweenLinkedBodys(boolean collisionBetweenLinkedBodys)
collisionBetweenLinkedBodys - set to false to have no collisions between linked bodyspublic PhysicsRigidBody getBodyA()
public PhysicsRigidBody getBodyB()
public com.jme3.math.Vector3f getPivotA()
public com.jme3.math.Vector3f getPivotB()
public void destroy()
public void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablejava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savablejava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable