@NoOffset @Properties(inherit=liquidfun.class) public class b2FixtureDef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2FixtureDef()
The constructor sets the default fixture definition values.
|
b2FixtureDef(long size)
Native array allocator.
|
b2FixtureDef(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
density()
The density, usually in kg/m^2.
|
b2FixtureDef |
density(float setter) |
b2Filter |
filter()
Contact filtering data.
|
b2FixtureDef |
filter(b2Filter setter) |
float |
friction()
The friction coefficient, usually in the range [0,1].
|
b2FixtureDef |
friction(float setter) |
b2FixtureDef |
getPointer(long i) |
boolean |
isSensor()
A sensor shape collects contact information but never generates a collision
response.
|
b2FixtureDef |
isSensor(boolean setter) |
b2FixtureDef |
position(long position) |
float |
restitution()
The restitution (elasticity) usually in the range [0,1].
|
b2FixtureDef |
restitution(float setter) |
b2Shape |
shape()
The shape, this must be set.
|
b2FixtureDef |
shape(b2Shape shape) |
Pointer |
userData()
Use this to store application specific fixture data.
|
b2FixtureDef |
userData(Pointer setter) |
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 b2FixtureDef(Pointer p)
Pointer(Pointer)
.public b2FixtureDef(long size)
Pointer.position(long)
.public b2FixtureDef()
public b2FixtureDef position(long position)
public b2FixtureDef getPointer(long i)
getPointer
in class Pointer
@MemberGetter @Const public b2Shape shape()
@MemberSetter public b2FixtureDef shape(@Const b2Shape shape)
public Pointer userData()
public b2FixtureDef userData(Pointer setter)
@Cast(value="float32") public float friction()
public b2FixtureDef friction(float setter)
@Cast(value="float32") public float restitution()
public b2FixtureDef restitution(float setter)
public b2FixtureDef density(float setter)
@Cast(value="bool") public boolean isSensor()
public b2FixtureDef isSensor(boolean setter)
public b2FixtureDef filter(b2Filter setter)
Copyright © 2022. All rights reserved.