java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.extensions.PxJoint
physx.extensions.PxDistanceJoint
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxDistanceJointarrayGet(long baseAddress, int index) voiddestroy()floatfloatfloatfloatfloatfloatvoidsetDamping(float damping) voidsetDistanceJointFlag(PxDistanceJointFlagEnum flag, boolean value) voidvoidsetMaxDistance(float distance) voidsetMinDistance(float distance) voidsetStiffness(float stiffness) voidsetTolerance(float tolerance) static PxDistanceJointwrapPointer(long address) Methods inherited from class physx.extensions.PxJoint
getConstraint, getConstraintFlags, getInvMassScale0, getInvMassScale1, getLocalPose, getName, getRelativeAngularVelocity, getRelativeLinearVelocity, getRelativeTransform, getScene, getUserData, setActors, setBreakForce, setConstraintFlag, setConstraintFlags, setInvMassScale0, setInvMassScale1, setLocalPose, setName, setUserDataMethods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlagsMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxDistanceJoint
protected PxDistanceJoint() -
PxDistanceJoint
protected PxDistanceJoint(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getDistance
public float getDistance()- Returns:
- WebIDL type: float
-
setMinDistance
public void setMinDistance(float distance) - Parameters:
distance- WebIDL type: float
-
getMinDistance
public float getMinDistance()- Returns:
- WebIDL type: float
-
setMaxDistance
public void setMaxDistance(float distance) - Parameters:
distance- WebIDL type: float
-
getMaxDistance
public float getMaxDistance()- Returns:
- WebIDL type: float
-
setTolerance
public void setTolerance(float tolerance) - Parameters:
tolerance- WebIDL type: float
-
getTolerance
public float getTolerance()- Returns:
- WebIDL type: float
-
setStiffness
public void setStiffness(float stiffness) - Parameters:
stiffness- WebIDL type: float
-
getStiffness
public float getStiffness()- Returns:
- WebIDL type: float
-
setDamping
public void setDamping(float damping) - Parameters:
damping- WebIDL type: float
-
getDamping
public float getDamping()- Returns:
- WebIDL type: float
-
setDistanceJointFlags
- Parameters:
flags- WebIDL type:PxDistanceJointFlags[Ref]
-
setDistanceJointFlag
- Parameters:
flag- WebIDL type:PxDistanceJointFlagEnum[enum]value- WebIDL type: boolean
-
getDistanceJointFlags
- Returns:
- WebIDL type:
PxDistanceJointFlags[Value]
-