Class RigidBodyOb


  • public class RigidBodyOb
    extends CFacade
    Generated facet for DNA struct type 'RigidBodyOb'.

    Class Documentation

    Blender Source Code

    RigidBodyObject (rbo)

    Represents an object participating in a RigidBody sim. This is attached to each object that is currently participating in a sim.

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct RigidBodyOb.

        It is required when allocating a new block to store data for RigidBodyOb.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__type

        public static final long[] __DNA__FIELD__type
        Field descriptor (offset) for struct member 'type'.

        Field Documentation

        Blender Source Code

        General Settings for this RigidBodyOb (eRigidBodyOb_Type) role of RigidBody in sim.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'type'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__shape

        public static final long[] __DNA__FIELD__shape
        Field descriptor (offset) for struct member 'shape'.

        Field Documentation

        Blender Source Code

        (eRigidBody_Shape) collision shape to use.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'shape'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Field Documentation

        Blender Source Code

        (eRigidBodyOb_Flag).

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__col_groups

        public static final long[] __DNA__FIELD__col_groups
        Field descriptor (offset) for struct member 'col_groups'.

        Field Documentation

        Blender Source Code

        Collision groups that determines which rigid bodies can collide with each other.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'col_groups'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__mesh_source

        public static final long[] __DNA__FIELD__mesh_source
        Field descriptor (offset) for struct member 'mesh_source'.

        Field Documentation

        Blender Source Code

        (eRigidBody_MeshSource) mesh source for mesh based collision shapes.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'mesh_source'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad

        public static final long[] __DNA__FIELD___pad
        Field descriptor (offset) for struct member '_pad'.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__mass

        public static final long[] __DNA__FIELD__mass
        Field descriptor (offset) for struct member 'mass'.

        Field Documentation

        Blender Source Code

        Physics Parameters How much object 'weighs' (i.e. absolute 'amount of stuff' it holds).

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'mass'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__friction

        public static final long[] __DNA__FIELD__friction
        Field descriptor (offset) for struct member 'friction'.

        Field Documentation

        Blender Source Code

        Resistance of object to movement.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'friction'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__restitution

        public static final long[] __DNA__FIELD__restitution
        Field descriptor (offset) for struct member 'restitution'.

        Field Documentation

        Blender Source Code

        How 'bouncy' object is when it collides.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'restitution'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__margin

        public static final long[] __DNA__FIELD__margin
        Field descriptor (offset) for struct member 'margin'.

        Field Documentation

        Blender Source Code

        Tolerance for detecting collisions.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'margin'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__lin_damping

        public static final long[] __DNA__FIELD__lin_damping
        Field descriptor (offset) for struct member 'lin_damping'.

        Field Documentation

        Blender Source Code

        Damping for linear velocities.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'lin_damping'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__ang_damping

        public static final long[] __DNA__FIELD__ang_damping
        Field descriptor (offset) for struct member 'ang_damping'.

        Field Documentation

        Blender Source Code

        Damping for angular velocities.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'ang_damping'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__lin_sleep_thresh

        public static final long[] __DNA__FIELD__lin_sleep_thresh
        Field descriptor (offset) for struct member 'lin_sleep_thresh'.

        Field Documentation

        Blender Source Code

        Deactivation threshold for linear velocities.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'lin_sleep_thresh'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__ang_sleep_thresh

        public static final long[] __DNA__FIELD__ang_sleep_thresh
        Field descriptor (offset) for struct member 'ang_sleep_thresh'.

        Field Documentation

        Blender Source Code

        Deactivation threshold for angular velocities.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'ang_sleep_thresh'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__orn

        public static final long[] __DNA__FIELD__orn
        Field descriptor (offset) for struct member 'orn'.

        Field Documentation

        Blender Source Code

        Rigid body orientation.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'orn'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__pos

        public static final long[] __DNA__FIELD__pos
        Field descriptor (offset) for struct member 'pos'.

        Field Documentation

        Blender Source Code

        Rigid body position.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'pos'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
      • __DNA__FIELD___pad1

        public static final long[] __DNA__FIELD___pad1
        Field descriptor (offset) for struct member '_pad1'.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: '_pad1'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__shared

        public static final long[] __DNA__FIELD__shared
        Field descriptor (offset) for struct member 'shared'.

        Field Documentation

        Blender Source Code

        This pointer is shared between all evaluated copies.

        Pointer Arithmetics

        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});
         

        Metadata

        • Field: 'shared'
        • Signature: 'RigidBodyOb_Shared*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • RigidBodyOb

        public RigidBodyOb​(long __address,
                           Block __block,
                           BlockTable __blockTable)
      • RigidBodyOb

        protected RigidBodyOb​(RigidBodyOb that)
    • Method Detail

      • getType

        public short getType()
                      throws java.io.IOException
        Get method for struct member 'type'.

        Field Documentation

        Blender Source Code

        General Settings for this RigidBodyOb (eRigidBodyOb_Type) role of RigidBody in sim.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

        public void setType​(short type)
                     throws java.io.IOException
        Set method for struct member 'type'.

        Field Documentation

        Blender Source Code

        General Settings for this RigidBodyOb (eRigidBodyOb_Type) role of RigidBody in sim.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • getShape

        public short getShape()
                       throws java.io.IOException
        Get method for struct member 'shape'.

        Field Documentation

        Blender Source Code

        (eRigidBody_Shape) collision shape to use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shape
      • setShape

        public void setShape​(short shape)
                      throws java.io.IOException
        Set method for struct member 'shape'.

        Field Documentation

        Blender Source Code

        (eRigidBody_Shape) collision shape to use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shape
      • getFlag

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        (eRigidBodyOb_Flag).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(int flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        (eRigidBodyOb_Flag).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getCol_groups

        public int getCol_groups()
                          throws java.io.IOException
        Get method for struct member 'col_groups'.

        Field Documentation

        Blender Source Code

        Collision groups that determines which rigid bodies can collide with each other.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__col_groups
      • setCol_groups

        public void setCol_groups​(int col_groups)
                           throws java.io.IOException
        Set method for struct member 'col_groups'.

        Field Documentation

        Blender Source Code

        Collision groups that determines which rigid bodies can collide with each other.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__col_groups
      • getMesh_source

        public short getMesh_source()
                             throws java.io.IOException
        Get method for struct member 'mesh_source'.

        Field Documentation

        Blender Source Code

        (eRigidBody_MeshSource) mesh source for mesh based collision shapes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mesh_source
      • setMesh_source

        public void setMesh_source​(short mesh_source)
                            throws java.io.IOException
        Set method for struct member 'mesh_source'.

        Field Documentation

        Blender Source Code

        (eRigidBody_MeshSource) mesh source for mesh based collision shapes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mesh_source
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • getMass

        public float getMass()
                      throws java.io.IOException
        Get method for struct member 'mass'.

        Field Documentation

        Blender Source Code

        Physics Parameters How much object 'weighs' (i.e. absolute 'amount of stuff' it holds).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mass
      • setMass

        public void setMass​(float mass)
                     throws java.io.IOException
        Set method for struct member 'mass'.

        Field Documentation

        Blender Source Code

        Physics Parameters How much object 'weighs' (i.e. absolute 'amount of stuff' it holds).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mass
      • getFriction

        public float getFriction()
                          throws java.io.IOException
        Get method for struct member 'friction'.

        Field Documentation

        Blender Source Code

        Resistance of object to movement.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__friction
      • setFriction

        public void setFriction​(float friction)
                         throws java.io.IOException
        Set method for struct member 'friction'.

        Field Documentation

        Blender Source Code

        Resistance of object to movement.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__friction
      • getRestitution

        public float getRestitution()
                             throws java.io.IOException
        Get method for struct member 'restitution'.

        Field Documentation

        Blender Source Code

        How 'bouncy' object is when it collides.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__restitution
      • setRestitution

        public void setRestitution​(float restitution)
                            throws java.io.IOException
        Set method for struct member 'restitution'.

        Field Documentation

        Blender Source Code

        How 'bouncy' object is when it collides.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__restitution
      • getMargin

        public float getMargin()
                        throws java.io.IOException
        Get method for struct member 'margin'.

        Field Documentation

        Blender Source Code

        Tolerance for detecting collisions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__margin
      • setMargin

        public void setMargin​(float margin)
                       throws java.io.IOException
        Set method for struct member 'margin'.

        Field Documentation

        Blender Source Code

        Tolerance for detecting collisions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__margin
      • getLin_damping

        public float getLin_damping()
                             throws java.io.IOException
        Get method for struct member 'lin_damping'.

        Field Documentation

        Blender Source Code

        Damping for linear velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lin_damping
      • setLin_damping

        public void setLin_damping​(float lin_damping)
                            throws java.io.IOException
        Set method for struct member 'lin_damping'.

        Field Documentation

        Blender Source Code

        Damping for linear velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lin_damping
      • getAng_damping

        public float getAng_damping()
                             throws java.io.IOException
        Get method for struct member 'ang_damping'.

        Field Documentation

        Blender Source Code

        Damping for angular velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ang_damping
      • setAng_damping

        public void setAng_damping​(float ang_damping)
                            throws java.io.IOException
        Set method for struct member 'ang_damping'.

        Field Documentation

        Blender Source Code

        Damping for angular velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ang_damping
      • getLin_sleep_thresh

        public float getLin_sleep_thresh()
                                  throws java.io.IOException
        Get method for struct member 'lin_sleep_thresh'.

        Field Documentation

        Blender Source Code

        Deactivation threshold for linear velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lin_sleep_thresh
      • setLin_sleep_thresh

        public void setLin_sleep_thresh​(float lin_sleep_thresh)
                                 throws java.io.IOException
        Set method for struct member 'lin_sleep_thresh'.

        Field Documentation

        Blender Source Code

        Deactivation threshold for linear velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lin_sleep_thresh
      • getAng_sleep_thresh

        public float getAng_sleep_thresh()
                                  throws java.io.IOException
        Get method for struct member 'ang_sleep_thresh'.

        Field Documentation

        Blender Source Code

        Deactivation threshold for angular velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ang_sleep_thresh
      • setAng_sleep_thresh

        public void setAng_sleep_thresh​(float ang_sleep_thresh)
                                 throws java.io.IOException
        Set method for struct member 'ang_sleep_thresh'.

        Field Documentation

        Blender Source Code

        Deactivation threshold for angular velocities.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ang_sleep_thresh
      • getOrn

        public CArrayFacade<java.lang.Float> getOrn()
                                             throws java.io.IOException
        Get method for struct member 'orn'.

        Field Documentation

        Blender Source Code

        Rigid body orientation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__orn
      • setOrn

        public void setOrn​(CArrayFacade<java.lang.Float> orn)
                    throws java.io.IOException
        Set method for struct member 'orn'.

        Field Documentation

        Blender Source Code

        Rigid body orientation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__orn
      • getPos

        public CArrayFacade<java.lang.Float> getPos()
                                             throws java.io.IOException
        Get method for struct member 'pos'.

        Field Documentation

        Blender Source Code

        Rigid body position.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pos
      • setPos

        public void setPos​(CArrayFacade<java.lang.Float> pos)
                    throws java.io.IOException
        Set method for struct member 'pos'.

        Field Documentation

        Blender Source Code

        Rigid body position.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pos
      • get_pad1

        public CArrayFacade<java.lang.Byte> get_pad1()
                                              throws java.io.IOException
        Get method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • set_pad1

        public void set_pad1​(CArrayFacade<java.lang.Byte> _pad1)
                      throws java.io.IOException
        Set method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • getShared

        public CPointer<java.lang.Object> getShared()
                                             throws java.io.IOException
        Get method for struct member 'shared'.

        Field Documentation

        Blender Source Code

        This pointer is shared between all evaluated copies.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shared
      • setShared

        public void setShared​(CPointer<java.lang.Object> shared)
                       throws java.io.IOException
        Set method for struct member 'shared'.

        Field Documentation

        Blender Source Code

        This pointer is shared between all evaluated copies.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shared
      • __io__addressof

        public CPointer<RigidBodyOb> __io__addressof()
        Instantiates a pointer on this instance.