Package 

Class MorphTargetBuffer

    • Method Summary

      Modifier and Type Method Description
      void setPositionsAt(@NonNull() Engine engine, @IntRange(from = 0) int targetIndex, @NonNull() Array<float> positions, @IntRange(from = 0, to = 125) int count) Updates float4 positions for the given morph target.
      void setTangentsAt(@NonNull() Engine engine, @IntRange(from = 0) int targetIndex, @NonNull() Array<short> tangents, @IntRange(from = 0, to = 125) int count) Updates tangents for the given morph target.These quaternions must be represented as signed shorts, where real numbers in the [-1,+1]range multiplied by 32767.
      int getVertexCount()
      int getCount()
      long getNativeObject()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setPositionsAt

         void setPositionsAt(@NonNull() Engine engine, @IntRange(from = 0) int targetIndex, @NonNull() Array<float> positions, @IntRange(from = 0, to = 125) int count)

        Updates float4 positions for the given morph target.

        Parameters:
        engine - Engine instance
        targetIndex - The index of morph target to be updated
        positions - An array with at least count*4 floats
        count - Number of float4 vectors in positions to be consumed
      • setTangentsAt

         void setTangentsAt(@NonNull() Engine engine, @IntRange(from = 0) int targetIndex, @NonNull() Array<short> tangents, @IntRange(from = 0, to = 125) int count)

        Updates tangents for the given morph target.These quaternions must be represented as signed shorts, where real numbers in the [-1,+1]range multiplied by 32767.

        Parameters:
        engine - Engine instance
        targetIndex - The index of morph target to be updated
        tangents - An array with at least "count*4" shorts
        count - number of short4 quaternions in tangents