public class RigidBodyOb extends CFacade
RigidBodyObject (rbo)
Represents an object participating in a RigidBody sim. This is attached to each object that is currently participating in a sim.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.
|
static long[] |
__DNA__FIELD___pad1
Field descriptor (offset) for struct member '_pad1'.
|
static long[] |
__DNA__FIELD__ang_damping
Field descriptor (offset) for struct member 'ang_damping'.
|
static long[] |
__DNA__FIELD__ang_sleep_thresh
Field descriptor (offset) for struct member 'ang_sleep_thresh'.
|
static long[] |
__DNA__FIELD__col_groups
Field descriptor (offset) for struct member 'col_groups'.
|
static long[] |
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.
|
static long[] |
__DNA__FIELD__friction
Field descriptor (offset) for struct member 'friction'.
|
static long[] |
__DNA__FIELD__lin_damping
Field descriptor (offset) for struct member 'lin_damping'.
|
static long[] |
__DNA__FIELD__lin_sleep_thresh
Field descriptor (offset) for struct member 'lin_sleep_thresh'.
|
static long[] |
__DNA__FIELD__margin
Field descriptor (offset) for struct member 'margin'.
|
static long[] |
__DNA__FIELD__mass
Field descriptor (offset) for struct member 'mass'.
|
static long[] |
__DNA__FIELD__mesh_source
Field descriptor (offset) for struct member 'mesh_source'.
|
static long[] |
__DNA__FIELD__orn
Field descriptor (offset) for struct member 'orn'.
|
static long[] |
__DNA__FIELD__pos
Field descriptor (offset) for struct member 'pos'.
|
static long[] |
__DNA__FIELD__restitution
Field descriptor (offset) for struct member 'restitution'.
|
static long[] |
__DNA__FIELD__shape
Field descriptor (offset) for struct member 'shape'.
|
static long[] |
__DNA__FIELD__shared
Field descriptor (offset) for struct member 'shared'.
|
static long[] |
__DNA__FIELD__type
Field descriptor (offset) for struct member 'type'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct RigidBodyOb.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
|
RigidBodyOb(long __address,
Block __block,
BlockTable __blockTable) |
protected |
RigidBodyOb(RigidBodyOb that) |
Modifier and Type | Method and Description |
---|---|
CPointer<RigidBodyOb> |
__io__addressof()
Instantiates a pointer on this instance.
|
CArrayFacade<java.lang.Byte> |
get_pad()
Get method for struct member '_pad'.
|
CArrayFacade<java.lang.Byte> |
get_pad1()
Get method for struct member '_pad1'.
|
float |
getAng_damping()
Get method for struct member 'ang_damping'.
|
float |
getAng_sleep_thresh()
Get method for struct member 'ang_sleep_thresh'.
|
int |
getCol_groups()
Get method for struct member 'col_groups'.
|
int |
getFlag()
Get method for struct member 'flag'.
|
float |
getFriction()
Get method for struct member 'friction'.
|
float |
getLin_damping()
Get method for struct member 'lin_damping'.
|
float |
getLin_sleep_thresh()
Get method for struct member 'lin_sleep_thresh'.
|
float |
getMargin()
Get method for struct member 'margin'.
|
float |
getMass()
Get method for struct member 'mass'.
|
short |
getMesh_source()
Get method for struct member 'mesh_source'.
|
CArrayFacade<java.lang.Float> |
getOrn()
Get method for struct member 'orn'.
|
CArrayFacade<java.lang.Float> |
getPos()
Get method for struct member 'pos'.
|
float |
getRestitution()
Get method for struct member 'restitution'.
|
short |
getShape()
Get method for struct member 'shape'.
|
CPointer<java.lang.Object> |
getShared()
Get method for struct member 'shared'.
|
short |
getType()
Get method for struct member 'type'.
|
void |
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.
|
void |
set_pad1(CArrayFacade<java.lang.Byte> _pad1)
Set method for struct member '_pad1'.
|
void |
setAng_damping(float ang_damping)
Set method for struct member 'ang_damping'.
|
void |
setAng_sleep_thresh(float ang_sleep_thresh)
Set method for struct member 'ang_sleep_thresh'.
|
void |
setCol_groups(int col_groups)
Set method for struct member 'col_groups'.
|
void |
setFlag(int flag)
Set method for struct member 'flag'.
|
void |
setFriction(float friction)
Set method for struct member 'friction'.
|
void |
setLin_damping(float lin_damping)
Set method for struct member 'lin_damping'.
|
void |
setLin_sleep_thresh(float lin_sleep_thresh)
Set method for struct member 'lin_sleep_thresh'.
|
void |
setMargin(float margin)
Set method for struct member 'margin'.
|
void |
setMass(float mass)
Set method for struct member 'mass'.
|
void |
setMesh_source(short mesh_source)
Set method for struct member 'mesh_source'.
|
void |
setOrn(CArrayFacade<java.lang.Float> orn)
Set method for struct member 'orn'.
|
void |
setPos(CArrayFacade<java.lang.Float> pos)
Set method for struct member 'pos'.
|
void |
setRestitution(float restitution)
Set method for struct member 'restitution'.
|
void |
setShape(short shape)
Set method for struct member 'shape'.
|
void |
setShared(CPointer<java.lang.Object> shared)
Set method for struct member 'shared'.
|
void |
setType(short type)
Set method for struct member 'type'.
|
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof
public static final int __DNA__SDNA_INDEX
It is required when allocating a new block to store data for RigidBodyOb.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__type
General Settings for this RigidBodyOb
(eRigidBodyOb_Type) role of RigidBody in sim .
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__type); CPointer<Short> p_type = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__shape
(eRigidBody_Shape) collision shape to use.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__shape); CPointer<Short> p_shape = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__flag
(eRigidBodyOb_Flag).
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__flag); CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__col_groups
Collision groups that determines which rigid bodies can collide with each other.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__col_groups); CPointer<Integer> p_col_groups = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__mesh_source
(eRigidBody_MeshSource) mesh source for mesh based collision shapes.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__mesh_source); CPointer<Short> p_mesh_source = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD___pad
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD___pad); CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__mass
Physics Parameters How much object 'weighs' (i.e. absolute 'amount of stuff' it holds).
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__mass); CPointer<Float> p_mass = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__friction
Resistance of object to movement.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__friction); CPointer<Float> p_friction = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__restitution
How 'bouncy' object is when it collides.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__restitution); CPointer<Float> p_restitution = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__margin
Tolerance for detecting collisions.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__margin); CPointer<Float> p_margin = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__lin_damping
Damping for linear velocities.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__lin_damping); CPointer<Float> p_lin_damping = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__ang_damping
Damping for angular velocities.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__ang_damping); CPointer<Float> p_ang_damping = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__lin_sleep_thresh
Deactivation threshold for linear velocities.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__lin_sleep_thresh); CPointer<Float> p_lin_sleep_thresh = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__ang_sleep_thresh
Deactivation threshold for angular velocities.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__ang_sleep_thresh); CPointer<Float> p_ang_sleep_thresh = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__orn
Rigid body orientation.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__orn); CPointer<CArrayFacade<Float>> p_orn = p.cast(new Class[]{CArrayFacade.class, Float.class});
public static final long[] __DNA__FIELD__pos
Rigid body position.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__pos); CPointer<CArrayFacade<Float>> p_pos = p.cast(new Class[]{CArrayFacade.class, Float.class});
public static final long[] __DNA__FIELD___pad1
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD___pad1); CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__shared
This pointer is shared between all evaluated copies.
This is how you get a reference on the corresponding field in the struct:
RigidBodyOb rigidbodyob = ...; CPointer<Object> p = rigidbodyob.__dna__addressof(RigidBodyOb.__DNA__FIELD__shared); CPointer<CPointer<Object>> p_shared = p.cast(new Class[]{CPointer.class, Object.class});
public RigidBodyOb(long __address, Block __block, BlockTable __blockTable)
protected RigidBodyOb(RigidBodyOb that)
public short getType() throws java.io.IOException
General Settings for this RigidBodyOb
(eRigidBodyOb_Type) role of RigidBody in sim .
java.io.IOException
__DNA__FIELD__type
public void setType(short type) throws java.io.IOException
General Settings for this RigidBodyOb
(eRigidBodyOb_Type) role of RigidBody in sim .
java.io.IOException
__DNA__FIELD__type
public short getShape() throws java.io.IOException
(eRigidBody_Shape) collision shape to use.
java.io.IOException
__DNA__FIELD__shape
public void setShape(short shape) throws java.io.IOException
(eRigidBody_Shape) collision shape to use.
java.io.IOException
__DNA__FIELD__shape
public int getFlag() throws java.io.IOException
(eRigidBodyOb_Flag).
java.io.IOException
__DNA__FIELD__flag
public void setFlag(int flag) throws java.io.IOException
(eRigidBodyOb_Flag).
java.io.IOException
__DNA__FIELD__flag
public int getCol_groups() throws java.io.IOException
Collision groups that determines which rigid bodies can collide with each other.
java.io.IOException
__DNA__FIELD__col_groups
public void setCol_groups(int col_groups) throws java.io.IOException
Collision groups that determines which rigid bodies can collide with each other.
java.io.IOException
__DNA__FIELD__col_groups
public short getMesh_source() throws java.io.IOException
(eRigidBody_MeshSource) mesh source for mesh based collision shapes.
java.io.IOException
__DNA__FIELD__mesh_source
public void setMesh_source(short mesh_source) throws java.io.IOException
(eRigidBody_MeshSource) mesh source for mesh based collision shapes.
java.io.IOException
__DNA__FIELD__mesh_source
public CArrayFacade<java.lang.Byte> get_pad() throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad
public void set_pad(CArrayFacade<java.lang.Byte> _pad) throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad
public float getMass() throws java.io.IOException
Physics Parameters How much object 'weighs' (i.e. absolute 'amount of stuff' it holds).
java.io.IOException
__DNA__FIELD__mass
public void setMass(float mass) throws java.io.IOException
Physics Parameters How much object 'weighs' (i.e. absolute 'amount of stuff' it holds).
java.io.IOException
__DNA__FIELD__mass
public float getFriction() throws java.io.IOException
Resistance of object to movement.
java.io.IOException
__DNA__FIELD__friction
public void setFriction(float friction) throws java.io.IOException
Resistance of object to movement.
java.io.IOException
__DNA__FIELD__friction
public float getRestitution() throws java.io.IOException
How 'bouncy' object is when it collides.
java.io.IOException
__DNA__FIELD__restitution
public void setRestitution(float restitution) throws java.io.IOException
How 'bouncy' object is when it collides.
java.io.IOException
__DNA__FIELD__restitution
public float getMargin() throws java.io.IOException
Tolerance for detecting collisions.
java.io.IOException
__DNA__FIELD__margin
public void setMargin(float margin) throws java.io.IOException
Tolerance for detecting collisions.
java.io.IOException
__DNA__FIELD__margin
public float getLin_damping() throws java.io.IOException
Damping for linear velocities.
java.io.IOException
__DNA__FIELD__lin_damping
public void setLin_damping(float lin_damping) throws java.io.IOException
Damping for linear velocities.
java.io.IOException
__DNA__FIELD__lin_damping
public float getAng_damping() throws java.io.IOException
Damping for angular velocities.
java.io.IOException
__DNA__FIELD__ang_damping
public void setAng_damping(float ang_damping) throws java.io.IOException
Damping for angular velocities.
java.io.IOException
__DNA__FIELD__ang_damping
public float getLin_sleep_thresh() throws java.io.IOException
Deactivation threshold for linear velocities.
java.io.IOException
__DNA__FIELD__lin_sleep_thresh
public void setLin_sleep_thresh(float lin_sleep_thresh) throws java.io.IOException
Deactivation threshold for linear velocities.
java.io.IOException
__DNA__FIELD__lin_sleep_thresh
public float getAng_sleep_thresh() throws java.io.IOException
Deactivation threshold for angular velocities.
java.io.IOException
__DNA__FIELD__ang_sleep_thresh
public void setAng_sleep_thresh(float ang_sleep_thresh) throws java.io.IOException
Deactivation threshold for angular velocities.
java.io.IOException
__DNA__FIELD__ang_sleep_thresh
public CArrayFacade<java.lang.Float> getOrn() throws java.io.IOException
Rigid body orientation.
java.io.IOException
__DNA__FIELD__orn
public void setOrn(CArrayFacade<java.lang.Float> orn) throws java.io.IOException
Rigid body orientation.
java.io.IOException
__DNA__FIELD__orn
public CArrayFacade<java.lang.Float> getPos() throws java.io.IOException
Rigid body position.
java.io.IOException
__DNA__FIELD__pos
public void setPos(CArrayFacade<java.lang.Float> pos) throws java.io.IOException
Rigid body position.
java.io.IOException
__DNA__FIELD__pos
public CArrayFacade<java.lang.Byte> get_pad1() throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad1
public void set_pad1(CArrayFacade<java.lang.Byte> _pad1) throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad1
public CPointer<java.lang.Object> getShared() throws java.io.IOException
This pointer is shared between all evaluated copies.
java.io.IOException
__DNA__FIELD__shared
public void setShared(CPointer<java.lang.Object> shared) throws java.io.IOException
This pointer is shared between all evaluated copies.
java.io.IOException
__DNA__FIELD__shared
public CPointer<RigidBodyOb> __io__addressof()