CreateBone()

Syntax

CreateBone(#Mesh, Bone$, ParentBone$, x, y, z, RotationX, RotationY, RotationZ, RotationW, Modus)
Beschreibung
Erstellt einen neuen Bone ("Knochen") für das angegebene #Mesh. Wenn das Mesh kein Skelett hat, muss es vor Verwendung dieses Befehls mit CreateSkeleton() erstellt werden.

Parameter

#Mesh Das zu verwendende Mesh.
Bone$ Der neue Knochenname.
ParentBone$ Der Name des übergeordneten Knochens. Wenn dieser String leer ist, wird der Knochen an der Wurzel des Skeletts erstellt.
x, y, z Die neue Knochenkoordinate in Welteinheiten.
RotationX, RotationY, RotationZ, RotationW Die neue Knochenrotation.
Modus Der für die Knochenrotation zu verwendende Modus. Dies kann einer der folgenden Werte sein:
  #PB_Orientation_PitchYawRoll  : 'RotationX' (Neigung), 'RotationY' (Gieren), 'RotationZ' (Rollen), angewendet in dieser Reihenfolge (Standard).
  #PB_Orientation_Quaternion    : 'RotationX', 'RotationY', 'RotationZ', 'RotationW' für Quaternionwerte
  #PB_Orientation_AngleAxis     : 'RotationX', 'RotationY', 'RotationZ' für die Rotationsachse und 'RotationW' für den Winkel (in Grad).
  #PB_Orientation_Direction     : Alias für #PB_Orientation_DirectionLDVZN
  #PB_Orientation_DirectionLDVX : 'RotationX', 'RotationY', 'RotationZ' für den Richtungsvektor (lokaler Richtungsvektor X) und 'RotationW' für den Winkel (in Grad).
  #PB_Orientation_DirectionLDVY : 'RotationX', 'RotationY', 'RotationZ' für den Richtungsvektor (lokaler Richtungsvektor Y) und 'RotationW' für den Winkel (in Grad).
  #PB_Orientation_DirectionLDVZ : 'RotationX', 'RotationY', 'RotationZ' für den Richtungsvektor (lokaler Richtungsvektor Z) und 'RotationW' für den Winkel (in Grad).
  #PB_Orientation_DirectionLDVXN: 'RotationX', 'RotationY', 'RotationZ' für den Richtungsvektor (lokaler Richtungsvektor -X) und 'RotationW' für den Winkel (in Grad).
  #PB_Orientation_DirectionLDVYN: 'RotationX', 'RotationY', 'RotationZ' für den Richtungsvektor (lokaler Richtungsvektor -Y) und 'RotationW' für den Winkel (in Grad).
  #PB_Orientation_DirectionLDVZN: 'RotationX', 'RotationY', 'RotationZ' für den Richtungsvektor (lokaler Richtungsvektor -Z) und 'RotationW' für den Winkel (in Grad).

Rückgabewert

Diese Funktion gibt keinen Wert zurück.

Unterstützte OS

Alle

<- AddSkeletonAnimationKeyFrame() - Skeleton Inhaltsverzeichnis - CreateSkeleton() ->