@NoOffset @Properties(inherit=Bullet3OpenCL.class) public class b3GpuNarrowPhase extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b3GpuNarrowPhase(Pointer p)
Pointer cast constructor.
|
b3GpuNarrowPhase(Pointer vtx,
Pointer dev,
Pointer q,
b3Config config) |
Modifier and Type | Method and Description |
---|---|
int |
allocateCollidable() |
void |
computeContacts(Pointer broadphasePairs,
int numBroadphasePairs,
Pointer aabbsWorldSpace,
int numObjects) |
Pointer |
getAabbLocalSpaceBufferGpu() |
b3RigidBodyData |
getBodiesCpu() |
Pointer |
getBodiesGpu() |
Pointer |
getBodyInertiasGpu() |
b3Collidable |
getCollidableCpu(int collidableIndex) |
b3Collidable |
getCollidablesCpu() |
Pointer |
getCollidablesGpu() |
b3Contact4 |
getContactsCPU() |
Pointer |
getContactsGpu() |
b3GpuNarrowPhaseInternalData |
getInternalData() |
b3SapAabb |
getLocalSpaceAabb(int collidableIndex) |
b3SapAabb |
getLocalSpaceAabbsCpu() |
int |
getNumBodiesGpu() |
int |
getNumBodyInertiasGpu() |
int |
getNumCollidablesGpu() |
int |
getNumContactsGpu() |
int |
getNumRigidBodies() |
boolean |
getObjectTransformFromCpu(float[] _position,
float[] orientation,
int bodyIndex) |
boolean |
getObjectTransformFromCpu(FloatBuffer _position,
FloatBuffer orientation,
int bodyIndex) |
boolean |
getObjectTransformFromCpu(FloatPointer _position,
FloatPointer orientation,
int bodyIndex) |
int |
getStatic0Index() |
void |
readbackAllBodiesToCpu() |
int |
registerCompoundShape(b3GpuChildShapeArray childShapes) |
int |
registerConcaveMesh(b3Vector3Array vertices,
b3IntArray indices,
float[] scaling) |
int |
registerConcaveMesh(b3Vector3Array vertices,
b3IntArray indices,
FloatBuffer scaling) |
int |
registerConcaveMesh(b3Vector3Array vertices,
b3IntArray indices,
FloatPointer scaling) |
int |
registerConvexHullShape(b3ConvexUtility utilPtr) |
int |
registerConvexHullShape(float[] vertices,
int strideInBytes,
int numVertices,
float[] scaling) |
int |
registerConvexHullShape(FloatBuffer vertices,
int strideInBytes,
int numVertices,
FloatBuffer scaling) |
int |
registerConvexHullShape(FloatPointer vertices,
int strideInBytes,
int numVertices,
FloatPointer scaling) |
int |
registerFace(b3Vector3 faceNormal,
float faceConstant) |
int |
registerPlaneShape(b3Vector3 planeNormal,
float planeConstant) |
int |
registerRigidBody(int collidableIndex,
float mass,
float[] _position,
float[] orientation,
float[] aabbMin,
float[] aabbMax,
boolean writeToGpu) |
int |
registerRigidBody(int collidableIndex,
float mass,
FloatBuffer _position,
FloatBuffer orientation,
FloatBuffer aabbMin,
FloatBuffer aabbMax,
boolean writeToGpu) |
int |
registerRigidBody(int collidableIndex,
float mass,
FloatPointer _position,
FloatPointer orientation,
FloatPointer aabbMin,
FloatPointer aabbMax,
boolean writeToGpu) |
int |
registerSphereShape(float radius) |
void |
reset() |
void |
setObjectTransformCpu(float[] _position,
float[] orientation,
int bodyIndex) |
void |
setObjectTransformCpu(FloatBuffer _position,
FloatBuffer orientation,
int bodyIndex) |
void |
setObjectTransformCpu(FloatPointer _position,
FloatPointer orientation,
int bodyIndex) |
void |
setObjectVelocityCpu(float[] linVel,
float[] angVel,
int bodyIndex) |
void |
setObjectVelocityCpu(FloatBuffer linVel,
FloatBuffer angVel,
int bodyIndex) |
void |
setObjectVelocityCpu(FloatPointer linVel,
FloatPointer angVel,
int bodyIndex) |
void |
writeAllBodiesToGpu() |
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, zero
public b3GpuNarrowPhase(Pointer p)
Pointer(Pointer)
.public int registerSphereShape(float radius)
public int registerPlaneShape(@Const @ByRef b3Vector3 planeNormal, float planeConstant)
public int registerCompoundShape(b3GpuChildShapeArray childShapes)
public int registerConcaveMesh(b3Vector3Array vertices, b3IntArray indices, @Const FloatPointer scaling)
public int registerConcaveMesh(b3Vector3Array vertices, b3IntArray indices, @Const FloatBuffer scaling)
public int registerConcaveMesh(b3Vector3Array vertices, b3IntArray indices, @Const float[] scaling)
public int registerConvexHullShape(b3ConvexUtility utilPtr)
public int registerConvexHullShape(@Const FloatPointer vertices, int strideInBytes, int numVertices, @Const FloatPointer scaling)
public int registerConvexHullShape(@Const FloatBuffer vertices, int strideInBytes, int numVertices, @Const FloatBuffer scaling)
public int registerConvexHullShape(@Const float[] vertices, int strideInBytes, int numVertices, @Const float[] scaling)
public int registerRigidBody(int collidableIndex, float mass, @Const FloatPointer _position, @Const FloatPointer orientation, @Const FloatPointer aabbMin, @Const FloatPointer aabbMax, @Cast(value="bool") boolean writeToGpu)
public int registerRigidBody(int collidableIndex, float mass, @Const FloatBuffer _position, @Const FloatBuffer orientation, @Const FloatBuffer aabbMin, @Const FloatBuffer aabbMax, @Cast(value="bool") boolean writeToGpu)
public int registerRigidBody(int collidableIndex, float mass, @Const float[] _position, @Const float[] orientation, @Const float[] aabbMin, @Const float[] aabbMax, @Cast(value="bool") boolean writeToGpu)
public void writeAllBodiesToGpu()
public void reset()
public void readbackAllBodiesToCpu()
@Cast(value="bool") public boolean getObjectTransformFromCpu(FloatPointer _position, FloatPointer orientation, int bodyIndex)
@Cast(value="bool") public boolean getObjectTransformFromCpu(FloatBuffer _position, FloatBuffer orientation, int bodyIndex)
@Cast(value="bool") public boolean getObjectTransformFromCpu(float[] _position, float[] orientation, int bodyIndex)
public void setObjectTransformCpu(FloatPointer _position, FloatPointer orientation, int bodyIndex)
public void setObjectTransformCpu(FloatBuffer _position, FloatBuffer orientation, int bodyIndex)
public void setObjectTransformCpu(float[] _position, float[] orientation, int bodyIndex)
public void setObjectVelocityCpu(FloatPointer linVel, FloatPointer angVel, int bodyIndex)
public void setObjectVelocityCpu(FloatBuffer linVel, FloatBuffer angVel, int bodyIndex)
public void setObjectVelocityCpu(float[] linVel, float[] angVel, int bodyIndex)
public void computeContacts(@Cast(value="cl_mem") Pointer broadphasePairs, int numBroadphasePairs, @Cast(value="cl_mem") Pointer aabbsWorldSpace, int numObjects)
@Const public b3RigidBodyData getBodiesCpu()
public int getNumBodiesGpu()
public int getNumBodyInertiasGpu()
@Const public b3Collidable getCollidablesCpu()
public int getNumCollidablesGpu()
@Const public b3Contact4 getContactsCPU()
public int getNumContactsGpu()
public int getNumRigidBodies()
public int allocateCollidable()
public int getStatic0Index()
@ByRef public b3Collidable getCollidableCpu(int collidableIndex)
public b3GpuNarrowPhaseInternalData getInternalData()
Copyright © 2024. All rights reserved.