@Properties(inherit=liquidfun.class) public class b2ContactListener extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2ContactListener()
Default native constructor.
|
b2ContactListener(long size)
Native array allocator.
|
b2ContactListener(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
BeginContact(b2Contact contact)
Called when two fixtures begin to touch.
|
void |
BeginContact(b2ParticleSystem particleSystem,
b2ParticleBodyContact particleBodyContact)
Called when a fixture and particle start touching if the
b2_fixtureContactFilterParticle flag is set on the particle.
|
void |
BeginContact(b2ParticleSystem particleSystem,
b2ParticleContact particleContact)
Called when two particles start touching if
b2_particleContactFilterParticle flag is set on either particle.
|
void |
EndContact(b2Contact contact)
Called when two fixtures cease to touch.
|
void |
EndContact(b2Fixture fixture,
b2ParticleSystem particleSystem,
int index)
Called when a fixture and particle stop touching if the
b2_fixtureContactFilterParticle flag is set on the particle.
|
void |
EndContact(b2ParticleSystem particleSystem,
int indexA,
int indexB)
Called when two particles start touching if
b2_particleContactFilterParticle flag is set on either particle.
|
b2ContactListener |
getPointer(long i) |
b2ContactListener |
position(long position) |
void |
PostSolve(b2Contact contact,
b2ContactImpulse impulse)
This lets you inspect a contact after the solver is finished.
|
void |
PreSolve(b2Contact contact,
b2Manifold oldManifold)
This is called after a contact is updated.
|
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 b2ContactListener()
public b2ContactListener(long size)
Pointer.position(long)
.public b2ContactListener(Pointer p)
Pointer(Pointer)
.public b2ContactListener position(long position)
public b2ContactListener getPointer(long i)
getPointer
in class Pointer
@Virtual public void BeginContact(b2Contact contact)
@Virtual public void EndContact(b2Contact contact)
@Virtual public void BeginContact(b2ParticleSystem particleSystem, b2ParticleBodyContact particleBodyContact)
@Virtual public void EndContact(b2Fixture fixture, b2ParticleSystem particleSystem, @Cast(value="int32") int index)
@Virtual public void BeginContact(b2ParticleSystem particleSystem, b2ParticleContact particleContact)
@Virtual public void EndContact(b2ParticleSystem particleSystem, @Cast(value="int32") int indexA, @Cast(value="int32") int indexB)
@Virtual public void PreSolve(b2Contact contact, @Const b2Manifold oldManifold)
@Virtual public void PostSolve(b2Contact contact, @Const b2ContactImpulse impulse)
Copyright © 2022. All rights reserved.