yoshinoToylogic / bulletsharp

Automatically exported from code.google.com/p/bulletsharp
MIT License
0 stars 0 forks source link

Problems with XNA 4.0 and bulletsharp #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The current version of this library dont support current version of XNA 4.0. I 
use release version of XNA 4.0.

I get errors when set Vector3 property to library class instance

World.Gravity = Vector3.Down;

Here these errors 

The type 'Microsoft.Xna.Framework.Vector3' is defined in an assembly that is 
not referenced. You must add a reference to assembly 'Microsoft.Xna.Framework, 
Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d'.

Cannot implicitly convert type 'Microsoft.Xna.Framework.Vector3 [c:\Program 
Files (x86)\Microsoft XNA\XNA Game 
Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.dll]' to 
'Microsoft.Xna.Framework.Vector3'

Maybe u must change assembly from beta CTP to release ?

Original issue reported on code.google.com by chaos...@mail.ru on 12 Oct 2010 at 10:45

GoogleCodeExporter commented 8 years ago
It's a matter of recompiling the library to update some internal reference 
stuff.

I'll wrap up a few things and then make a release soon. I added a basic XNA 4.0 
demo to the SVN trunk to try it out.

Thanks for the report!

Original comment by andres.traks on 12 Oct 2010 at 6:18

GoogleCodeExporter commented 8 years ago
I am also getting this error, I hope you find the time to recompile with the 
current XNA 4 references to for example Vector3. I really would love to use 
your wrapper in my project. I did try and download the trunk and recompile with 
the new XNA reference however the trunk seems to be broken at the moment.

Original comment by jamie.go...@gmail.com on 17 Oct 2010 at 12:12

GoogleCodeExporter commented 8 years ago
My bad, trunk is ok, I hadn't included some of the libs.

I have recompiled using the latest XNA references and everything seems ok, I 
did have a problem in that the latest demo references CollisionShapeArray, 
which no longer seems to exist, I replaced and used the 
AlignedCollisionShapeArray object instead, substituting the PushBack method 
calls with Add method calls. I haven't had a chance to fully test yet though so 
this may or may not be a show stopper.

Original comment by jamie.go...@gmail.com on 17 Oct 2010 at 12:55

GoogleCodeExporter commented 8 years ago
Yes, I prefixed some Arrays with "Aligned", because they wrap the 
AlignedObjectArray class while others just wrap regular arrays. The new arrays 
also inherit the generic IList interface, hence the PushBack->Add rename.

The benefit of implementing IList is that now we can see the contents of arrays 
when debugging Bullet objects in Visual Studio. It also makes interacting with 
the arrays much nicer, since .NET programmers are probably accustomed to ILists.

There are just a couple of things I want to finish in SoftBody before 0.11. 
Expect a release today or tomorrow. After that I'll look into GPU acceleration, 
which should be sweet.

Original comment by andres.traks on 17 Oct 2010 at 2:33

GoogleCodeExporter commented 8 years ago
Sweet, thanks for the work. I was gonna report the same error and I'm glad 
you're gonna fix it soon.

Original comment by kittyfis...@gmail.com on 18 Oct 2010 at 4:36

GoogleCodeExporter commented 8 years ago
Well I got so far, now I'm getting:

Could not load file or assembly 'BulletSharp.dll' or one of its dependencies. 
This application has failed to start because the application configuration is 
incorrect. Reinstalling the application may fix this problem. (Exception from 
HRESULT: 0x800736B1)

When I try and use anything in the library, the paths are all correct and I 
have it set to copy the dll to local. This is the kind of problem when you 
normally compile a dll to x64 and try and use it in an x86 app. I've been 
through both ends and it seems they are both set to x86....

Any ideas?

Original comment by jamie.go...@gmail.com on 18 Oct 2010 at 12:16

GoogleCodeExporter commented 8 years ago
Go ahead and try the new release.

Original comment by andres.traks on 18 Oct 2010 at 12:41

GoogleCodeExporter commented 8 years ago
Perfect, thanks v much mate, I'll leave the compiling to you as I was obviously 
doing something wrong! 

Original comment by jamie.go...@gmail.com on 18 Oct 2010 at 12:46

GoogleCodeExporter commented 8 years ago

Original comment by andres.traks on 18 Oct 2010 at 5:34