@NoOffset @Properties(inherit=liquidfun.class) public class b2BroadPhase extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
e_nullProxy
enum b2BroadPhase::
|
Constructor and Description |
---|
b2BroadPhase() |
b2BroadPhase(long size)
Native array allocator.
|
b2BroadPhase(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
CreateProxy(b2AABB aabb,
Pointer userData)
Create a proxy with an initial AABB.
|
void |
DestroyProxy(int proxyId)
Destroy a proxy.
|
b2AABB |
GetFatAABB(int proxyId)
Get the fat AABB for a proxy.
|
b2BroadPhase |
getPointer(long i) |
int |
GetProxyCount()
Get the number of proxies.
|
int |
GetTreeBalance()
Get the balance of the embedded tree.
|
int |
GetTreeHeight()
Get the height of the embedded tree.
|
float |
GetTreeQuality()
Get the quality metric of the embedded tree.
|
Pointer |
GetUserData(int proxyId)
Get user data from a proxy.
|
void |
MoveProxy(int proxyId,
b2AABB aabb,
b2Vec2 displacement)
Call MoveProxy as many times as you like, then when you are done
call UpdatePairs to finalized the proxy pairs (for your time step).
|
b2BroadPhase |
position(long position) |
void |
ShiftOrigin(b2Vec2 newOrigin)
Shift the world origin.
|
boolean |
TestOverlap(int proxyIdA,
int proxyIdB)
Test overlap of fat AABBs.
|
void |
TouchProxy(int proxyId)
Call to trigger a re-processing of it's pairs on the next call to UpdatePairs.
|
address, 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, zero
public static final int e_nullProxy
public b2BroadPhase(Pointer p)
Pointer(Pointer)
.public b2BroadPhase(long size)
Pointer.position(long)
.public b2BroadPhase()
public b2BroadPhase position(long position)
public b2BroadPhase getPointer(long i)
getPointer
in class Pointer
@Cast(value="int32") public int CreateProxy(@Const @ByRef b2AABB aabb, Pointer userData)
public void DestroyProxy(@Cast(value="int32") int proxyId)
public void MoveProxy(@Cast(value="int32") int proxyId, @Const @ByRef b2AABB aabb, @Const @ByRef b2Vec2 displacement)
public void TouchProxy(@Cast(value="int32") int proxyId)
@Const @ByRef public b2AABB GetFatAABB(@Cast(value="int32") int proxyId)
public Pointer GetUserData(@Cast(value="int32") int proxyId)
@Cast(value="bool") public boolean TestOverlap(@Cast(value="int32") int proxyIdA, @Cast(value="int32") int proxyIdB)
@Cast(value="int32") public int GetTreeBalance()
@Cast(value="float32") public float GetTreeQuality()
Copyright © 2022. All rights reserved.