@NoOffset @Properties(inherit=BulletSoftBody.class) public class btSoftBodySolver extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
btSoftBodySolver.SolverTypes |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btSoftBodySolver(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInitialized()
Ensure that this solver is initialized.
|
void |
copyBackToSoftBodies() |
void |
copyBackToSoftBodies(boolean bMove)
Copy necessary data back to the original soft body source objects.
|
int |
getNumberOfPositionIterations()
Get the number of velocity constraint solver iterations this solver uses.
|
int |
getNumberOfVelocityIterations()
Get the number of velocity constraint solver iterations this solver uses.
|
btSoftBodySolver.SolverTypes |
getSolverType()
Return the type of the solver.
|
float |
getTimeScale()
Return the timescale that the simulation is using
|
void |
optimize(btSoftBodyArray softBodies) |
void |
optimize(btSoftBodyArray softBodies,
boolean forceUpdate)
Optimize soft bodies in this solver.
|
void |
predictMotion(double solverdt)
Predict motion of soft bodies into next timestep
|
void |
processCollision(btSoftBody arg0,
btCollisionObjectWrapper arg1)
Process a collision between one of the world's soft bodies and another collision object
|
void |
processCollision(btSoftBody arg0,
btSoftBody arg1)
Process a collision between two soft bodies
|
void |
setNumberOfPositionIterations(int iterations)
Set the number of velocity constraint solver iterations this solver uses.
|
void |
setNumberOfVelocityIterations(int iterations)
Set the number of velocity constraint solver iterations this solver uses.
|
void |
solveConstraints(double solverdt)
Solve constraints for a set of soft bodies
|
void |
updateSoftBodies()
Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic btSoftBodySolver(Pointer p)
Pointer(Pointer).public btSoftBodySolver.SolverTypes getSolverType()
@Cast(value="bool") public boolean checkInitialized()
public void optimize(@ByRef btSoftBodyArray softBodies, @Cast(value="bool") boolean forceUpdate)
public void optimize(@ByRef btSoftBodyArray softBodies)
public void copyBackToSoftBodies(@Cast(value="bool") boolean bMove)
public void copyBackToSoftBodies()
public void predictMotion(@Cast(value="btScalar") double solverdt)
public void solveConstraints(@Cast(value="btScalar") double solverdt)
public void updateSoftBodies()
public void processCollision(btSoftBody arg0, @Const btCollisionObjectWrapper arg1)
public void processCollision(btSoftBody arg0, btSoftBody arg1)
public void setNumberOfPositionIterations(int iterations)
public int getNumberOfPositionIterations()
public void setNumberOfVelocityIterations(int iterations)
public int getNumberOfVelocityIterations()
public float getTimeScale()
Copyright © 2024. All rights reserved.