public class btSoftBody extends btCollisionObject
btCollisionObject.AnisotropicFrictionFlags, btCollisionObject.CollisionFlags, btCollisionObject.CollisionObjectTypesinstances, userDataclassName| Constructor and Description |
|---|
btSoftBody(btSoftBodyWorldInfo worldInfo) |
btSoftBody(btSoftBodyWorldInfo worldInfo,
FloatBuffer vertices,
int vertexSize,
int posOffset,
int normalOffset,
ShortBuffer indices,
int indexOffset,
int numVertices,
ShortBuffer indexMap,
int indexMapOffset) |
btSoftBody(btSoftBodyWorldInfo worldInfo,
int node_count,
btVector3 x,
FloatBuffer m) |
btSoftBody(long cPtr,
boolean cMemoryOwn)
Construct a new btSoftBody, normally you should not need this constructor it's intended for low-level usage.
|
activate, activate, addInstance, calculateSerializeBufferSize, checkCollideWith, checkCollideWithOverride, dispose, forceActivationState, getActivationState, getAnisotropicFriction, getAnisotropicFriction, getBroadphaseHandle, getCcdMotionThreshold, getCcdSquareMotionThreshold, getCcdSweptSphereRadius, getCollisionFlags, getCollisionShape, getCompanionId, getContactCallbackFilter, getContactCallbackFlag, getContactDamping, getContactProcessingThreshold, getContactStiffness, getCPtr, getCustomDebugColor, getDeactivationTime, getFriction, getHitFraction, getInstance, getInstance, getInternalType, getInterpolationAngularVelocity, getInterpolationAngularVelocity, getInterpolationLinearVelocity, getInterpolationLinearVelocity, getInterpolationWorldTransform, getInterpolationWorldTransform, getIslandTag, getRestitution, getRollingFriction, getSpinningFriction, getUpdateRevisionInternal, getUserIndex, getUserIndex2, getUserPointer, getUserValue, getWorldArrayIndex, getWorldTransform, getWorldTransform, hasAnisotropicFriction, hasAnisotropicFriction, hasContactResponse, internalGetExtensionPointer, internalSetExtensionPointer, isActive, isKinematicObject, isStaticObject, isStaticOrKinematicObject, mergesSimulationIslands, operatorDelete, operatorDelete, operatorDeleteArray, operatorDeleteArray, operatorNew, operatorNew, operatorNewArray, operatorNewArray, removeCustomDebugColor, removeInstance, serialize, serializeSingleObject, setActivationState, setAnisotropicFriction, setAnisotropicFriction, setBroadphaseHandle, setCcdMotionThreshold, setCcdSweptSphereRadius, setCollisionFlags, setCollisionShape, setCompanionId, setContactCallbackFilter, setContactCallbackFlag, setContactProcessingThreshold, setContactStiffnessAndDamping, setCustomDebugColor, setDeactivationTime, setFriction, setHitFraction, setIgnoreCollisionCheck, setInterpolationAngularVelocity, setInterpolationLinearVelocity, setInterpolationWorldTransform, setIslandTag, setRestitution, setRollingFriction, setSpinningFriction, setUserIndex, setUserIndex2, setUserPointer, setUserValue, setWorldArrayIndex, setWorldTransformequals, getCPointer, hashCode, hasOwnership, isDisposed, isObtained, obtain, release, releaseOwnership, takeOwnership, toStringpublic btSoftBody(long cPtr,
boolean cMemoryOwn)
public btSoftBody(btSoftBodyWorldInfo worldInfo, int node_count, btVector3 x, FloatBuffer m)
public btSoftBody(btSoftBodyWorldInfo worldInfo)
public btSoftBody(btSoftBodyWorldInfo worldInfo, FloatBuffer vertices, int vertexSize, int posOffset, int normalOffset, ShortBuffer indices, int indexOffset, int numVertices, ShortBuffer indexMap, int indexMapOffset)
public static long getCPtr(btSoftBody obj)
public void setCollisionDisabledObjects(btCollisionObjectConstArray value)
public btCollisionObjectConstArray getCollisionDisabledObjects()
public void setSoftBodySolver(btSoftBodySolver value)
public btSoftBodySolver getSoftBodySolver()
public void setCfg(btSoftBody.Config value)
public btSoftBody.Config getCfg()
public void setSst(btSoftBody.SolverState value)
public btSoftBody.SolverState getSst()
public void setPose(btSoftBody.Pose value)
public btSoftBody.Pose getPose()
public void setTag(long value)
public long getTag()
public void setWorldInfo(btSoftBodyWorldInfo value)
public btSoftBodyWorldInfo getWorldInfo()
public void setNotes(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Note_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Note_t getNotes()
public void setNodes(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Node_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Node_t getNodes()
public void setLinks(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Link_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Link_t getLinks()
public void setFaces(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Face_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Face_t getFaces()
public void setTetras(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Tetra_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Tetra_t getTetras()
public void setAnchors(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Anchor_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Anchor_t getAnchors()
public void setRcontacts(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__RContact_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__RContact_t getRcontacts()
public void setScontacts(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__SContact_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__SContact_t getScontacts()
public void setJoints(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Joint_p_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Joint_p_t getJoints()
public void setMaterials(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Material_p_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Material_p_t getMaterials()
public void setTimeacc(float value)
public float getTimeacc()
public void setBounds(btVector3 value)
public btVector3 getBounds()
public void setBUpdateRtCst(boolean value)
public boolean getBUpdateRtCst()
public void setNdbvt(btDbvt value)
public btDbvt getNdbvt()
public void setFdbvt(btDbvt value)
public btDbvt getFdbvt()
public void setCdbvt(btDbvt value)
public btDbvt getCdbvt()
public void setClusters(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody__Cluster_p_t getClusters()
public void setClusterConnectivity(SWIGTYPE_p_btAlignedObjectArrayT_bool_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_bool_t getClusterConnectivity()
public void setInitialWorldTransform(btTransform value)
public btTransform getInitialWorldTransform()
public void setWindVelocity(btVector3 value)
public btVector3 getWindVelocity()
public void setRestLengthScale(float value)
public float getRestLengthScale()
public void initDefaults()
public void setUserIndexMapping(SWIGTYPE_p_btAlignedObjectArrayT_int_t value)
public SWIGTYPE_p_btAlignedObjectArrayT_int_t getUserIndexMapping()
public boolean checkLink(int node0,
int node1)
public boolean checkLink(btSoftBody.Node node0, btSoftBody.Node node1)
public boolean checkFace(int node0,
int node1,
int node2)
public btSoftBody.Material appendMaterial()
public void appendNote(String text, Vector3 o, btVector4 c, btSoftBody.Node n0, btSoftBody.Node n1, btSoftBody.Node n2, btSoftBody.Node n3)
public void appendNote(String text, Vector3 o, btVector4 c, btSoftBody.Node n0, btSoftBody.Node n1, btSoftBody.Node n2)
public void appendNote(String text, Vector3 o, btVector4 c, btSoftBody.Node n0, btSoftBody.Node n1)
public void appendNote(String text, Vector3 o, btVector4 c, btSoftBody.Node n0)
public void appendNote(String text, Vector3 o, btSoftBody.Node feature)
public void appendNote(String text, Vector3 o, btSoftBody.Link feature)
public void appendNote(String text, Vector3 o, btSoftBody.Face feature)
public void appendNode(Vector3 x, float m)
public void appendLink(int model,
btSoftBody.Material mat)
public void appendLink(int model)
public void appendLink()
public void appendLink(int node0,
int node1,
btSoftBody.Material mat,
boolean bcheckexist)
public void appendLink(int node0,
int node1,
btSoftBody.Material mat)
public void appendLink(int node0,
int node1)
public void appendLink(btSoftBody.Node node0, btSoftBody.Node node1, btSoftBody.Material mat, boolean bcheckexist)
public void appendLink(btSoftBody.Node node0, btSoftBody.Node node1, btSoftBody.Material mat)
public void appendLink(btSoftBody.Node node0, btSoftBody.Node node1)
public void appendFace(int model,
btSoftBody.Material mat)
public void appendFace(int model)
public void appendFace()
public void appendFace(int node0,
int node1,
int node2,
btSoftBody.Material mat)
public void appendFace(int node0,
int node1,
int node2)
public void appendTetra(int model,
btSoftBody.Material mat)
public void appendTetra(int node0,
int node1,
int node2,
int node3,
btSoftBody.Material mat)
public void appendTetra(int node0,
int node1,
int node2,
int node3)
public void appendAnchor(int node,
btRigidBody body,
boolean disableCollisionBetweenLinkedBodies,
float influence)
public void appendAnchor(int node,
btRigidBody body,
boolean disableCollisionBetweenLinkedBodies)
public void appendAnchor(int node,
btRigidBody body)
public void appendAnchor(int node,
btRigidBody body,
Vector3 localPivot,
boolean disableCollisionBetweenLinkedBodies,
float influence)
public void appendAnchor(int node,
btRigidBody body,
Vector3 localPivot,
boolean disableCollisionBetweenLinkedBodies)
public void appendAnchor(int node,
btRigidBody body,
Vector3 localPivot)
public void appendLinearJoint(btSoftBody.LJoint.Specs specs, btSoftBody.Cluster body0, btSoftBody.Body body1)
public void appendLinearJoint(btSoftBody.LJoint.Specs specs, btSoftBody.Body body)
public void appendLinearJoint(btSoftBody.LJoint.Specs specs)
public void appendLinearJoint(btSoftBody.LJoint.Specs specs, btSoftBody body)
public void appendAngularJoint(btSoftBody.AJoint.Specs specs, btSoftBody.Cluster body0, btSoftBody.Body body1)
public void appendAngularJoint(btSoftBody.AJoint.Specs specs, btSoftBody.Body body)
public void appendAngularJoint(btSoftBody.AJoint.Specs specs)
public void appendAngularJoint(btSoftBody.AJoint.Specs specs, btSoftBody body)
public void addForce(Vector3 force)
public void addForce(Vector3 force, int node)
public void addAeroForceToNode(Vector3 windVelocity, int nodeIndex)
public void addAeroForceToFace(Vector3 windVelocity, int faceIndex)
public void addVelocity(Vector3 velocity)
public void setVelocity(Vector3 velocity)
public void addVelocity(Vector3 velocity, int node)
public void setMass(int node,
float mass)
public float getMass(int node)
public float getTotalMass()
public void setTotalMass(float mass,
boolean fromfaces)
public void setTotalMass(float mass)
public void setTotalDensity(float density)
public void setVolumeMass(float mass)
public void setVolumeDensity(float density)
public void transform(Matrix4 trs)
public void translate(Vector3 trs)
public void rotate(Quaternion rot)
public void scale(Vector3 scl)
public void setPose(boolean bvolume,
boolean bframe)
public void resetLinkRestLengths()
public float getVolume()
public int clusterCount()
public static Vector3 clusterCom(btSoftBody.Cluster cluster)
public Vector3 clusterCom(int cluster)
public static Vector3 clusterVelocity(btSoftBody.Cluster cluster, Vector3 rpos)
public static void clusterVImpulse(btSoftBody.Cluster cluster, Vector3 rpos, Vector3 impulse)
public static void clusterDImpulse(btSoftBody.Cluster cluster, Vector3 rpos, Vector3 impulse)
public static void clusterImpulse(btSoftBody.Cluster cluster, Vector3 rpos, btSoftBody.Impulse impulse)
public static void clusterVAImpulse(btSoftBody.Cluster cluster, Vector3 impulse)
public static void clusterDAImpulse(btSoftBody.Cluster cluster, Vector3 impulse)
public static void clusterAImpulse(btSoftBody.Cluster cluster, btSoftBody.Impulse impulse)
public static void clusterDCImpulse(btSoftBody.Cluster cluster, Vector3 impulse)
public int generateBendingConstraints(int distance,
btSoftBody.Material mat)
public int generateBendingConstraints(int distance)
public void randomizeConstraints()
public void releaseCluster(int index)
public void releaseClusters()
public int generateClusters(int k,
int maxiterations)
public int generateClusters(int k)
public void refine(btSoftBody.ImplicitFn ifn, float accurary, boolean cut)
public boolean cutLink(int node0,
int node1,
float position)
public boolean cutLink(btSoftBody.Node node0, btSoftBody.Node node1, float position)
public boolean rayTest(Vector3 rayFrom, Vector3 rayTo, btSoftBody.sRayCast results)
public void setSolver(int preset)
public void predictMotion(float dt)
public void solveConstraints()
public void staticSolve(int iterations)
public static void solveCommonConstraints(SWIGTYPE_p_p_btSoftBody bodies, int count, int iterations)
public static void solveClusters(SWIGTYPE_p_btAlignedObjectArrayT_btSoftBody_p_t bodies)
public void integrateMotion()
public void defaultCollisionHandler(btCollisionObjectWrapper pcoWrap)
public void defaultCollisionHandler(btSoftBody psb)
public void setWindVelocity(Vector3 velocity)
public static btSoftBody upcastConstBtCollisionObject(btCollisionObject colObj)
public static btSoftBody upcast(btCollisionObject colObj)
public void pointersToIndices()
public void indicesToPointers(IntBuffer map)
public void indicesToPointers()
public int rayTest(Vector3 rayFrom, Vector3 rayTo, SWIGTYPE_p_float mint, SWIGTYPE_p_btSoftBody__eFeature___ feature, SWIGTYPE_p_int index, boolean bcountonly)
public void initializeFaceTree()
public Vector3 evaluateCom()
public boolean checkContact(btCollisionObjectWrapper colObjWrap, Vector3 x, float margin, btSoftBody.sCti cti)
public void updateNormals()
public void updateBounds()
public void updatePose()
public void updateConstants()
public void updateLinkConstants()
public void updateArea(boolean averageArea)
public void updateArea()
public void initializeClusters()
public void updateClusters()
public void cleanupClusters()
public void prepareClusters(int iterations)
public void solveClusters(float sor)
public void applyClusters(boolean drift)
public void dampClusters()
public void applyForces()
public static void PSolve_Anchors(btSoftBody psb, float kst, float ti)
public static void PSolve_RContacts(btSoftBody psb, float kst, float ti)
public static void PSolve_SContacts(btSoftBody psb, float arg1, float ti)
public static void PSolve_Links(btSoftBody psb, float kst, float ti)
public static void VSolve_Links(btSoftBody psb, float kst)
public static SWIGTYPE_p_f_p_btSoftBody_float_float__void getSolver(int solver)
public int getNodeCount()
public btSoftBody.Node getNode(int idx)
public int getLinkCount()
public btSoftBody.Link getLink(int idx)
public void getVertices(FloatBuffer buffer, int vertexCount, int vertexSize, int posOffset)
public void getVertices(FloatBuffer vertices, int vertexSize, int posOffset, ShortBuffer indices, int indexOffset, int numVertices, ShortBuffer indexMap, int indexMapOffset)
public void getVertices(FloatBuffer vertices, int vertexSize, int posOffset, int normalOffset, ShortBuffer indices, int indexOffset, int numVertices, ShortBuffer indexMap, int indexMapOffset)
public int getFaceCount()
public btSoftBody.Face getFace(int idx)
public void getIndices(ShortBuffer buffer, int triangleCount)
public void setConfig_kVCF(float v)
public void setConfig_kDP(float v)
public void setConfig_kDG(float v)
public void setConfig_kLF(float v)
public void setConfig_kPR(float v)
public void setConfig_kVC(float v)
public void setConfig_kDF(float v)
public void setConfig_kMT(float v)
public void setConfig_kCHR(float v)
public void setConfig_kKHR(float v)
public void setConfig_kSHR(float v)
public void setConfig_kAHR(float v)
public void setConfig_kSRHR_CL(float v)
public void setConfig_kSKHR_CL(float v)
public void setConfig_kSSHR_CL(float v)
public void setConfig_kSR_SPLT_CL(float v)
public void setConfig_kSK_SPLT_CL(float v)
public void setConfig_kSS_SPLT_CL(float v)
public void setConfig_maxvolume(float v)
public void setConfig_timescale(float v)
public void setConfig_viterations(int v)
public void setConfig_piterations(int v)
public void setConfig_diterations(int v)
public void setConfig_citerations(int v)
public void setConfig_collisions(int v)
Copyright © 2021. All rights reserved.