@NoOffset @Properties(inherit=liquidfun.class) public class b2Contact extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2Contact(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Evaluate(b2Manifold manifold,
b2Transform xfA,
b2Transform xfB)
Evaluate this contact with your own manifold and transforms.
|
int |
GetChildIndexA()
Get the child primitive index for fixture A.
|
int |
GetChildIndexB()
Get the child primitive index for fixture B.
|
b2Fixture |
GetFixtureA()
Get fixture A in this contact.
|
b2Fixture |
GetFixtureB()
Get fixture B in this contact.
|
float |
GetFriction()
Get the friction.
|
b2Manifold |
GetManifold()
Get the contact manifold.
|
b2Contact |
GetNext()
Get the next contact in the world's contact list.
|
float |
GetRestitution()
Get the restitution.
|
float |
GetTangentSpeed()
Get the desired tangent speed.
|
void |
GetWorldManifold(b2WorldManifold worldManifold)
Get the world manifold.
|
boolean |
IsEnabled()
Has this contact been disabled?
|
boolean |
IsTouching()
Is this contact touching?
|
void |
ResetFriction()
Reset the friction mixture to the default value.
|
void |
ResetRestitution()
Reset the restitution to the default value.
|
void |
SetEnabled(boolean flag)
Enable/disable this contact.
|
void |
SetFriction(float friction)
Override the default friction mixture.
|
void |
SetRestitution(float restitution)
Override the default restitution mixture.
|
void |
SetTangentSpeed(float speed)
Set the desired tangent speed for a conveyor belt behavior.
|
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 b2Contact(Pointer p)
Pointer(Pointer)
.public b2Manifold GetManifold()
public void GetWorldManifold(b2WorldManifold worldManifold)
public void SetEnabled(@Cast(value="bool") boolean flag)
public b2Contact GetNext()
public b2Fixture GetFixtureA()
@Cast(value="int32") public int GetChildIndexA()
public b2Fixture GetFixtureB()
@Cast(value="int32") public int GetChildIndexB()
public void SetFriction(@Cast(value="float32") float friction)
public void ResetFriction()
public void SetRestitution(@Cast(value="float32") float restitution)
public void ResetRestitution()
public void SetTangentSpeed(@Cast(value="float32") float speed)
@Cast(value="float32") public float GetTangentSpeed()
public void Evaluate(b2Manifold manifold, @Const @ByRef b2Transform xfA, @Const @ByRef b2Transform xfB)
Copyright © 2022. All rights reserved.