Class BoidRuleAverageSpeed


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         BoidRuleAverageSpeed boidruleaveragespeed = ...;
         CPointer<Object> p = boidruleaveragespeed.__dna__addressof(BoidRuleAverageSpeed.__DNA__FIELD__rule);
         CPointer<BoidRule> p_rule = p.cast(new Class[]{BoidRule.class});
         

        Metadata

        • Field: 'rule'
        • Signature: 'BoidRule'
        • Actual Size (32bit/64bit): 48/56
      • __DNA__FIELD__wander

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

        Field Documentation

        Blender Python API

        How fast velocity's direction is randomized

        Pointer Arithmetics

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

         BoidRuleAverageSpeed boidruleaveragespeed = ...;
         CPointer<Object> p = boidruleaveragespeed.__dna__addressof(BoidRuleAverageSpeed.__DNA__FIELD__wander);
         CPointer<Float> p_wander = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'wander'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__level

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

        Field Documentation

        Blender Python API

        How much velocity's z-component is kept constant

        Pointer Arithmetics

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

         BoidRuleAverageSpeed boidruleaveragespeed = ...;
         CPointer<Object> p = boidruleaveragespeed.__dna__addressof(BoidRuleAverageSpeed.__DNA__FIELD__level);
         CPointer<Float> p_level = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'level'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__speed

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

        Field Documentation

        Blender Python API

        Percentage of maximum speed

        Pointer Arithmetics

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

         BoidRuleAverageSpeed boidruleaveragespeed = ...;
         CPointer<Object> p = boidruleaveragespeed.__dna__addressof(BoidRuleAverageSpeed.__DNA__FIELD__speed);
         CPointer<Float> p_speed = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'speed'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rt

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

        Pointer Arithmetics

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

         BoidRuleAverageSpeed boidruleaveragespeed = ...;
         CPointer<Object> p = boidruleaveragespeed.__dna__addressof(BoidRuleAverageSpeed.__DNA__FIELD__rt);
         CPointer<Float> p_rt = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'rt'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • BoidRuleAverageSpeed

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

      • getRule

        public BoidRule getRule()
                         throws java.io.IOException
        Get method for struct member 'rule'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rule
      • setRule

        public void setRule​(BoidRule rule)
                     throws java.io.IOException
        Set method for struct member 'rule'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rule
      • getWander

        public float getWander()
                        throws java.io.IOException
        Get method for struct member 'wander'.

        Field Documentation

        Blender Python API

        How fast velocity's direction is randomized
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__wander
      • setWander

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

        Field Documentation

        Blender Python API

        How fast velocity's direction is randomized
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__wander
      • getLevel

        public float getLevel()
                       throws java.io.IOException
        Get method for struct member 'level'.

        Field Documentation

        Blender Python API

        How much velocity's z-component is kept constant
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__level
      • setLevel

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

        Field Documentation

        Blender Python API

        How much velocity's z-component is kept constant
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__level
      • getSpeed

        public float getSpeed()
                       throws java.io.IOException
        Get method for struct member 'speed'.

        Field Documentation

        Blender Python API

        Percentage of maximum speed
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__speed
      • setSpeed

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

        Field Documentation

        Blender Python API

        Percentage of maximum speed
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__speed
      • getRt

        public float getRt()
                    throws java.io.IOException
        Get method for struct member 'rt'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rt
      • setRt

        public void setRt​(float rt)
                   throws java.io.IOException
        Set method for struct member 'rt'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rt