-
public class MorphTargetBuffer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMorphTargetBuffer.Builder
-
Method Summary
Modifier and Type Method Description voidsetPositionsAt(@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. voidsetTangentsAt(@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. intgetVertexCount()intgetCount()longgetNativeObject()-
-
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 instancetargetIndex- The index of morph target to be updatedpositions- An array with at least count*4 floatscount- 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 instancetargetIndex- The index of morph target to be updatedtangents- An array with at least "count*4" shortscount- number of short4 quaternions in tangents
-
getVertexCount
int getVertexCount()
-
getCount
int getCount()
-
getNativeObject
long getNativeObject()
-
-
-
-