App Hub

code sample details

Object Placement On Avatar Sample

Submitted
6/18/2009
Code Sample

Sample Overview

Occasionally, you may want the avatars in your game to interact with other objects in the world. For example, perhaps you want your avatar to hold a baseball bat. In order to draw the baseball bat in the correct location, you need to know the world space location at which to place the bat. This sample demonstrates how to find the world space transform that is needed to draw a baseball bat in the avatar's right hand.



All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).

downloads

Framework

GS 4.0

Framework

GS 3.1

find education content
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG