@Properties(inherit=liquidfun.class) public class b2RayCastCallback extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2RayCastCallback()
Default native constructor.
|
b2RayCastCallback(long size)
Native array allocator.
|
b2RayCastCallback(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
b2RayCastCallback |
getPointer(long i) |
b2RayCastCallback |
position(long position) |
float |
ReportFixture(b2Fixture fixture,
b2Vec2 point,
b2Vec2 normal,
float fraction)
Called for each fixture found in the query.
|
float |
ReportParticle(b2ParticleSystem particleSystem,
int index,
b2Vec2 point,
b2Vec2 normal,
float fraction)
Called for each particle found in the query.
|
boolean |
ShouldQueryParticleSystem(b2ParticleSystem particleSystem)
Cull an entire particle system from b2World::RayCast.
|
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 b2RayCastCallback()
public b2RayCastCallback(long size)
Pointer.position(long)
.public b2RayCastCallback(Pointer p)
Pointer(Pointer)
.public b2RayCastCallback position(long position)
public b2RayCastCallback getPointer(long i)
getPointer
in class Pointer
@Virtual(value=true) @Cast(value="float32") public float ReportFixture(b2Fixture fixture, @Const @ByRef b2Vec2 point, @Const @ByRef b2Vec2 normal, @Cast(value="float32") float fraction)
fixture
- the fixture hit by the raypoint
- the point of initial intersectionnormal
- the normal vector at the point of intersection@Virtual @Cast(value="float32") public float ReportParticle(@Const b2ParticleSystem particleSystem, @Cast(value="int32") int index, @Const @ByRef b2Vec2 point, @Const @ByRef b2Vec2 normal, @Cast(value="float32") float fraction)
particleSystem
- the particle system containing the particleindex
- the index of the particle in particleSystempoint
- the point of intersection bt the ray and the particlenormal
- the normal vector at the point of intersectionfraction
- percent (0.0~1.0) from 'point0' to 'point1' along the
ray. Note that 'point1' and 'point2' are parameters to
b2World::RayCast.@Virtual @Cast(value="bool") public boolean ShouldQueryParticleSystem(@Const b2ParticleSystem particleSystem)
Copyright © 2022. All rights reserved.