Bagikan melalui


AvatarAnimation.BoneTransforms Property

Gets the current position of the bones at the time specified by CurrentPosition.

The positions are in local-bone space relative to their parent bones.

Dd940239.note(en-us,XNAGameStudio.41).gifWindows Specific Information
Avatar-related APIs are exposed on Windows to ease cross-platform development between Windows and the Xbox 360. All avatar-related methods return default values, and rendering methods do not draw anything to the screen.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.Avatar (in microsoft.xna.framework.avatar.dll)

Syntax

public ReadOnlyCollection<Matrix> BoneTransforms { get; }

Property Value

Collection of bone transforms.

Remarks

You can pass this matrix list to AvatarRenderer.Draw by using the bones parameter. This allows the developer to modify the position of one or more avatar bones before rendering the model.

See Also

Reference

AvatarAnimation Class
AvatarAnimation Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP