@NoOffset @Properties(inherit=BulletSoftBody.class) public class btDeformableBodySolver extends btSoftBodySolver
btSoftBodySolver.SolverTypesPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btDeformableBodySolver() |
btDeformableBodySolver(long size)
Native array allocator.
|
btDeformableBodySolver(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyExplicitForce() |
void |
applyTransforms(double timeStep) |
void |
backupDv() |
void |
backupVelocity() |
boolean |
checkInitialized()
Ensure that this solver is initialized.
|
double |
computeDescentStep(btVector3Array ddv,
btVector3Array residual) |
double |
computeDescentStep(btVector3Array ddv,
btVector3Array residual,
boolean verbose) |
void |
computeStep(btVector3Array ddv,
btVector3Array residual) |
void |
copyBackToSoftBodies() |
void |
copyBackToSoftBodies(boolean bMove)
Copy necessary data back to the original soft body source objects.
|
void |
copySoftBodyToVertexBuffer(btSoftBody softBody,
btVertexBufferDescriptor vertexBuffer) |
void |
deformableBodyInternalWriteBack() |
btSoftBodyNodePointerArray |
getIndices() |
btDeformableLagrangianForceArray |
getLagrangianForceArray() |
btDeformableBodySolver |
getPointer(long i) |
btSoftBodySolver.SolverTypes |
getSolverType()
Return the type of the solver.
|
boolean |
isReducedSolver() |
double |
kineticEnergy() |
btDeformableBackwardEulerObjective |
m_objective() |
btDeformableBodySolver |
m_objective(btDeformableBackwardEulerObjective setter) |
boolean |
m_useProjection() |
btDeformableBodySolver |
m_useProjection(boolean setter) |
void |
optimize(btSoftBodyArray softBodies) |
void |
optimize(btSoftBodyArray softBodies,
boolean forceUpdate)
Optimize soft bodies in this solver.
|
btDeformableBodySolver |
position(long position) |
void |
predictDeformableMotion(btSoftBody psb,
double dt) |
void |
predictMotion(double solverdt)
Predict motion of soft bodies into next timestep
|
void |
processCollision(btSoftBody softBody,
btCollisionObjectWrapper collisionObjectWrap)
Process a collision between one of the world's soft bodies and another collision object
|
void |
processCollision(btSoftBody softBody,
btSoftBody otherSoftBody)
Process a collision between two soft bodies
|
void |
reinitialize(btSoftBodyArray softBodies,
double dt) |
void |
revertDv() |
void |
revertVelocity() |
void |
setConstraints(btContactSolverInfo infoGlobal) |
void |
setGravity(btVector3 gravity) |
void |
setImplicit(boolean implicit) |
void |
setLagrangeMultiplier() |
void |
setLineSearch(boolean lineSearch) |
void |
setPreconditioner(int opt) |
void |
setProjection() |
void |
setStrainLimiting(boolean opt) |
void |
setupDeformableSolve(boolean implicit) |
void |
solveConstraints(double dt)
Solve constraints for a set of soft bodies
|
double |
solveContactConstraints(btCollisionObject deformableBodies,
int numDeformableBodies,
btContactSolverInfo infoGlobal) |
double |
solveContactConstraints(PointerPointer deformableBodies,
int numDeformableBodies,
btContactSolverInfo infoGlobal) |
void |
solveDeformableConstraints(double solverdt) |
void |
updateDv() |
void |
updateDv(double scale) |
void |
updateEnergy(double scale) |
boolean |
updateNodes() |
void |
updateSoftBodies()
Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes
|
void |
updateState() |
void |
updateTempPosition() |
void |
updateVelocity() |
getNumberOfPositionIterations, getNumberOfVelocityIterations, getTimeScale, setNumberOfPositionIterations, setNumberOfVelocityIterationsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic btDeformableBodySolver(Pointer p)
Pointer(Pointer).public btDeformableBodySolver(long size)
Pointer.position(long).public btDeformableBodySolver()
public btDeformableBodySolver position(long position)
public btDeformableBodySolver getPointer(long i)
getPointer in class Pointerpublic btDeformableBackwardEulerObjective m_objective()
public btDeformableBodySolver m_objective(btDeformableBackwardEulerObjective setter)
public btDeformableBodySolver m_useProjection(boolean setter)
@ByVal public btSoftBodySolver.SolverTypes getSolverType()
btSoftBodySolvergetSolverType in class btSoftBodySolverpublic void updateSoftBodies()
btSoftBodySolverupdateSoftBodies in class btSoftBodySolver@Cast(value="btScalar") public double solveContactConstraints(@Cast(value="btCollisionObject**") PointerPointer deformableBodies, int numDeformableBodies, @Const @ByRef btContactSolverInfo infoGlobal)
@Cast(value="btScalar") public double solveContactConstraints(@ByPtrPtr btCollisionObject deformableBodies, int numDeformableBodies, @Const @ByRef btContactSolverInfo infoGlobal)
public void solveDeformableConstraints(@Cast(value="btScalar") double solverdt)
public void reinitialize(@Const @ByRef btSoftBodyArray softBodies, @Cast(value="btScalar") double dt)
public void setConstraints(@Const @ByRef btContactSolverInfo infoGlobal)
public void predictMotion(@Cast(value="btScalar") double solverdt)
btSoftBodySolverpredictMotion in class btSoftBodySolverpublic void predictDeformableMotion(btSoftBody psb, @Cast(value="btScalar") double dt)
public void backupVelocity()
public void revertVelocity()
public void updateVelocity()
public void computeStep(@ByRef btVector3Array ddv, @Const @ByRef btVector3Array residual)
@Cast(value="btScalar") public double computeDescentStep(@ByRef btVector3Array ddv, @Const @ByRef btVector3Array residual, @Cast(value="bool") boolean verbose)
@Cast(value="btScalar") public double computeDescentStep(@ByRef btVector3Array ddv, @Const @ByRef btVector3Array residual)
public void copySoftBodyToVertexBuffer(@Const btSoftBody softBody, btVertexBufferDescriptor vertexBuffer)
public void processCollision(btSoftBody softBody, @Const btCollisionObjectWrapper collisionObjectWrap)
btSoftBodySolverprocessCollision in class btSoftBodySolverpublic void processCollision(btSoftBody softBody, btSoftBody otherSoftBody)
btSoftBodySolverprocessCollision in class btSoftBodySolverpublic void updateState()
public void updateDv()
public void updateTempPosition()
public void backupDv()
public void revertDv()
public void applyExplicitForce()
public void setPreconditioner(int opt)
public btDeformableLagrangianForceArray getLagrangianForceArray()
@Const public btSoftBodyNodePointerArray getIndices()
public void setProjection()
public void setLagrangeMultiplier()
public void deformableBodyInternalWriteBack()
public void optimize(@ByRef btSoftBodyArray softBodies, @Cast(value="bool") boolean forceUpdate)
btSoftBodySolveroptimize in class btSoftBodySolverpublic void optimize(@ByRef btSoftBodyArray softBodies)
optimize in class btSoftBodySolverpublic void solveConstraints(@Cast(value="btScalar") double dt)
btSoftBodySolversolveConstraints in class btSoftBodySolver@Cast(value="bool") public boolean checkInitialized()
btSoftBodySolvercheckInitialized in class btSoftBodySolverpublic void copyBackToSoftBodies(@Cast(value="bool") boolean bMove)
btSoftBodySolvercopyBackToSoftBodies in class btSoftBodySolverpublic void copyBackToSoftBodies()
copyBackToSoftBodies in class btSoftBodySolverCopyright © 2024. All rights reserved.