Class AIVertexWeight

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class AIVertexWeight
    extends Struct
    implements NativeResource
    A single influence of a bone on a vertex.

    Member documentation

    • mVertexId – Index of the vertex which is influenced by the bone.
    • mWeight – The strength of the influence in the range (0...1). The influence from all bones at one vertex amounts to 1.

    Layout

    
     struct aiVertexWeight {
         unsigned int mVertexId;
         float mWeight;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MVERTEXID, MWEIGHT

        The struct member offsets.
    • Constructor Detail

      • AIVertexWeight

        public AIVertexWeight​(java.nio.ByteBuffer container)
        Creates a AIVertexWeight instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.