I am now very excite !
From the tip , i download the Multithreading Demo ,but it not just right for me !
i find the BEPUphysicsDrawer and find the BEPUphysicsDrawer.dll in the project, then i add it to my project ,it not work ! yes,that BEPUphysicsDrawer.dll just for Xbox and X86 !
i study anther project :BEPUphysicsPhoneDemo , i find BEPUphysicsDrawer WP7.dll ,then add it to my project , it work well !
how i do ? ok,here it is:
>> download the demoļ¼ BEPUphysicsPhoneDemo v1.2.0 at
http://bepuphysics.codeplex.com/releases/view/62523
>> find : BEPUphysicsPhoneDemo\BEPUphysicsDrawer WP7\bin\Windows Phone\Release\BEPUphysicsDrawer WP7.dll ,remember it first
>> open your other project, in visual studio's solutionframe , click "reference" ,add the BEPUphysicsDrawer WP7.dll
>> at head add: using BEPUphysicsDrawer.Models; using BEPUphysicsDrawer.Font; using BEPUphysicsDrawer.Lines; [ head ]
>> at Initialize() add: public ModelDrawer ModelDrawer;
>> at LoadContent() add: ModelDrawer = new BruteModelDrawer(this);
//BruteModelDrawer InstancedModelDrawer //InstancedModelDrawer need HiDef ,wp7 not support hiDef,so use BruteModelDrawer ,it works well
>> add: foreach (Entity e in space.Entities)
{
ModelDrawer.Add(e);
}
>> at Update(GameTime gameTime) add: ModelDrawer.Update();
>> at Draw(GameTime gameTime) add: ModelDrawer.Draw(Camera.ViewMatrix, Camera.ProjectionMatrix);
ok,that all!
now,i will test lineframe around the entitys !