@NoOffset @Properties(inherit=liquidfun.class) public class b2Fixture extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2Fixture(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ComputeDistance(b2Vec2 p,
float[] distance,
b2Vec2 normal,
int childIndex) |
void |
ComputeDistance(b2Vec2 p,
FloatBuffer distance,
b2Vec2 normal,
int childIndex) |
void |
ComputeDistance(b2Vec2 p,
FloatPointer distance,
b2Vec2 normal,
int childIndex)
Compute the distance from this fixture.
|
void |
Dump(int bodyIndex)
Dump this fixture to the log file.
|
b2AABB |
GetAABB(int childIndex)
Get the fixture's AABB.
|
b2Body |
GetBody()
Get the parent body of this fixture.
|
float |
GetDensity()
Get the density of this fixture.
|
b2Filter |
GetFilterData()
Get the contact filtering data.
|
float |
GetFriction()
Get the coefficient of friction.
|
void |
GetMassData(b2MassData massData)
Get the mass data for this fixture.
|
b2Fixture |
GetNext()
Get the next fixture in the parent body's fixture list.
|
float |
GetRestitution()
Get the coefficient of restitution.
|
b2Shape |
GetShape()
Get the child shape.
|
int |
GetType()
Get the type of the child shape.
|
Pointer |
GetUserData()
Get the user data that was assigned in the fixture definition.
|
boolean |
IsSensor()
Is this fixture a sensor (non-solid)?
|
boolean |
RayCast(b2RayCastOutput output,
b2RayCastInput input,
int childIndex)
Cast a ray against this shape.
|
void |
Refilter()
Call this if you want to establish collision that was previously disabled by b2ContactFilter::ShouldCollide.
|
void |
SetDensity(float density)
Set the density of this fixture.
|
void |
SetFilterData(b2Filter filter)
Set the contact filtering data.
|
void |
SetFriction(float friction)
Set the coefficient of friction.
|
void |
SetRestitution(float restitution)
Set the coefficient of restitution.
|
void |
SetSensor(boolean sensor)
Set if this fixture is a sensor.
|
void |
SetUserData(Pointer data)
Set the user data.
|
boolean |
TestPoint(b2Vec2 p)
Test a point for containment in this fixture.
|
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 b2Fixture(Pointer p)
Pointer(Pointer)
.@Cast(value="b2Shape::Type") public int GetType()
public b2Shape GetShape()
public void SetSensor(@Cast(value="bool") boolean sensor)
@Cast(value="bool") public boolean IsSensor()
public void SetFilterData(@Const @ByRef b2Filter filter)
public void Refilter()
public b2Body GetBody()
public b2Fixture GetNext()
public Pointer GetUserData()
public void SetUserData(Pointer data)
@Cast(value="bool") public boolean TestPoint(@Const @ByRef b2Vec2 p)
p
- a point in world coordinates.public void ComputeDistance(@Const @ByRef b2Vec2 p, @Cast(value="float32*") FloatPointer distance, b2Vec2 normal, @Cast(value="int32") int childIndex)
p
- a point in world coordinates.public void ComputeDistance(@Const @ByRef b2Vec2 p, @Cast(value="float32*") FloatBuffer distance, b2Vec2 normal, @Cast(value="int32") int childIndex)
public void ComputeDistance(@Const @ByRef b2Vec2 p, @Cast(value="float32*") float[] distance, b2Vec2 normal, @Cast(value="int32") int childIndex)
@Cast(value="bool") public boolean RayCast(b2RayCastOutput output, @Const @ByRef b2RayCastInput input, @Cast(value="int32") int childIndex)
output
- the ray-cast results.input
- the ray-cast input parameters.public void GetMassData(b2MassData massData)
public void SetDensity(@Cast(value="float32") float density)
public void SetFriction(@Cast(value="float32") float friction)
@Cast(value="float32") public float GetRestitution()
public void SetRestitution(@Cast(value="float32") float restitution)
@Const @ByRef public b2AABB GetAABB(@Cast(value="int32") int childIndex)
Copyright © 2022. All rights reserved.