Class Raylib.PhysicsBody
java.lang.Object
org.bytedeco.javacpp.Pointer
com.raylib.Raylib.PhysicsBody
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
Raylib
public static class Raylib.PhysicsBody
extends org.bytedeco.javacpp.Pointer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
org.bytedeco.javacpp.Pointer.CustomDeallocator, org.bytedeco.javacpp.Pointer.Deallocator, org.bytedeco.javacpp.Pointer.NativeDeallocator, org.bytedeco.javacpp.Pointer.ReferenceCounter
-
Field Summary
Fields inherited from class org.bytedeco.javacpp.Pointer
address, capacity, limit, position
-
Constructor Summary
ConstructorDescriptionDefault native constructor.PhysicsBody
(long size) Native array allocator.PhysicsBody
(org.bytedeco.javacpp.Pointer p) Pointer cast constructor. -
Method Summary
Modifier and TypeMethodDescription_position
(Raylib.Vector2 setter) float
angularVelocity
(float setter) float
dynamicFriction
(float setter) boolean
enabled()
enabled
(boolean setter) force()
force
(Raylib.Vector2 setter) boolean
freezeOrient
(boolean setter) getPointer
(long i) int
id()
id
(int setter) float
inertia()
inertia
(float setter) float
inverseInertia
(float setter) float
inverseMass
(float setter) boolean
isGrounded
(boolean setter) float
mass()
mass
(float setter) float
orient()
orient
(float setter) position
(long position) float
restitution
(float setter) shape()
shape
(Raylib.PhysicsShape setter) float
staticFriction
(float setter) float
torque()
torque
(float setter) boolean
useGravity
(boolean setter) velocity()
velocity
(Raylib.Vector2 setter) Methods inherited from class org.bytedeco.javacpp.Pointer
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
-
Constructor Details
-
PhysicsBody
public PhysicsBody()Default native constructor. -
PhysicsBody
public PhysicsBody(long size) Native array allocator. Access withPointer.position(long)
. -
PhysicsBody
public PhysicsBody(org.bytedeco.javacpp.Pointer p) Pointer cast constructor. InvokesPointer(Pointer)
.
-
-
Method Details
-
position
- Overrides:
position
in classorg.bytedeco.javacpp.Pointer
-
getPointer
- Overrides:
getPointer
in classorg.bytedeco.javacpp.Pointer
-
id
@Cast("unsigned int") public int id() -
id
-
enabled
@Cast("bool") public boolean enabled() -
enabled
-
_position
-
_position
-
velocity
-
velocity
-
force
-
force
-
angularVelocity
public float angularVelocity() -
angularVelocity
-
torque
public float torque() -
torque
-
orient
public float orient() -
orient
-
inertia
public float inertia() -
inertia
-
inverseInertia
public float inverseInertia() -
inverseInertia
-
mass
public float mass() -
mass
-
inverseMass
public float inverseMass() -
inverseMass
-
staticFriction
public float staticFriction() -
staticFriction
-
dynamicFriction
public float dynamicFriction() -
dynamicFriction
-
restitution
public float restitution() -
restitution
-
useGravity
@Cast("bool") public boolean useGravity() -
useGravity
-
isGrounded
@Cast("bool") public boolean isGrounded() -
isGrounded
-
freezeOrient
@Cast("bool") public boolean freezeOrient() -
freezeOrient
-
shape
-
shape
-