Class PhysicsSettings


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

    Class Documentation

    Blender Source Code


    Global/Common Physics Settings

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         PhysicsSettings physicssettings = ...;
         CPointer<Object> p = physicssettings.__dna__addressof(PhysicsSettings.__DNA__FIELD__gravity);
         CPointer<CArrayFacade<Float>> p_gravity = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         PhysicsSettings physicssettings = ...;
         CPointer<Object> p = physicssettings.__dna__addressof(PhysicsSettings.__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__quick_cache_step

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

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         PhysicsSettings physicssettings = ...;
         CPointer<Object> p = physicssettings.__dna__addressof(PhysicsSettings.__DNA__FIELD__quick_cache_step);
         CPointer<Integer> p_quick_cache_step = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'quick_cache_step'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD___pad0

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

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         PhysicsSettings physicssettings = ...;
         CPointer<Object> p = physicssettings.__dna__addressof(PhysicsSettings.__DNA__FIELD___pad0);
         CPointer<CArrayFacade<Byte>> p__pad0 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad0'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • PhysicsSettings

        public PhysicsSettings​(long __address,
                               Block __block,
                               BlockTable __blockTable)
    • Method Detail

      • getGravity

        public CArrayFacade<java.lang.Float> getGravity()
                                                 throws java.io.IOException
        Get method for struct member 'gravity'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gravity
      • setGravity

        public void setGravity​(CArrayFacade<java.lang.Float> gravity)
                        throws java.io.IOException
        Set method for struct member 'gravity'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gravity
      • getFlag

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member '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'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getQuick_cache_step

        public int getQuick_cache_step()
                                throws java.io.IOException
        Get method for struct member 'quick_cache_step'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__quick_cache_step
      • setQuick_cache_step

        public void setQuick_cache_step​(int quick_cache_step)
                                 throws java.io.IOException
        Set method for struct member 'quick_cache_step'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__quick_cache_step
      • get_pad0

        public CArrayFacade<java.lang.Byte> get_pad0()
                                              throws java.io.IOException
        Get method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • set_pad0

        public void set_pad0​(CArrayFacade<java.lang.Byte> _pad0)
                      throws java.io.IOException
        Set method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0