yoshinoToylogic / bulletsharp

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

SharpDX #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I'm fairly sure it's my inexperience showing, or I'm just doing something 
plain wrong.
2. Created a new project using SharpDX, install reference from NuGet (2.8.2).
3. Download the SharpDX BulletSharp binary from 
https://aa9ff38af18deddfcdf8cfad1fdda3d4997e595b.googledrive.com/host/0B2TPMwtgg
T0jamt6VDhXVTJwOXc/BulletSharp%202.82/bulletsharp-2.82.zip
4. Implement the code below:
5. See error on "World.Gravity = new Vector3(0, -10, 0);" namely "World" errors 
with "The type 'SharpDX.Vector3' is defined in an assembly that is not 
referenced. You must add a reference to assembly 'SharpDX, Version=2.3.1.0, 
Culture=neutral, PublicKeyToken=null'." and Vector3() errors with 
"Error  10  Argument 1: cannot convert from 'SharpDX.Vector3 
[..project\packages\SharpDX.2.6.2\Bin\DirectX11-Signed-net40\SharpDX.dll]' to 
'SharpDX.Vector3'"

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Windows 8.1, Visual Studio 2013 with SharpDX 2.8.2 installed from NuGet.
BulletSharp.dll

Please provide any additional information below.

Seems similar to this issue: 
https://code.google.com/p/bulletsharp/issues/detail?id=15&can=1

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BulletSharp;
using SharpDX;
using SharpDX.Toolkit;

using  Matrix = SharpDX.Matrix;
using  Vector3 = SharpDX.Vector3;
using  Vector4 = SharpDX.Vector4;

namespace Project2
{
    class PhysicsSystem: GameSystem
    {

        public DynamicsWorld World;

        CollisionDispatcher Dispatcher;
        BroadphaseInterface Broadphase;
        //ConstraintSolver Solver;
        AlignedCollisionShapeArray CollisionShapes;
        CollisionConfiguration collisionConf;

        public PhysicsSystem(Game game) : base(game) {

            // collision configuration contains default setup for memory, collision setup
            collisionConf = new DefaultCollisionConfiguration();
            Dispatcher = new CollisionDispatcher(collisionConf);
            Broadphase = new DbvtBroadphase();

            World = new DiscreteDynamicsWorld(Dispatcher, Broadphase, null, collisionConf);
            World.Gravity = new Vector3(0, -10, 0);
            CollisionShapes = new AlignedCollisionShapeArray();
            game.GameSystems.Add(this);
        }

Original issue reported on code.google.com by lucas.be...@gmail.com on 18 Sep 2014 at 5:09

GoogleCodeExporter commented 8 years ago
Apologies, this was written in haste.

I'm using SharpDx 2.6.2.0 from NuGet, not 2.8.2.

How do the bulletsharp version numbers work, follows bullet?

Original comment by lucas.be...@gmail.com on 18 Sep 2014 at 7:34

GoogleCodeExporter commented 8 years ago
Hmm, that's strange. I'm getting the same error with the NuGet package of 
SharpDX 2.6.2, but when I add a reference manually from the SharpDX 2.6.2 
binary package, it works for me.

Can you try the SharpDX package from their homepage?

Original comment by andres.traks on 26 Sep 2014 at 6:51

GoogleCodeExporter commented 8 years ago
"How do the bulletsharp version numbers work, follows bullet?"

Yes. The 2.83 wrapper isn't ready yet, so BulletSharp 2.82 is the latest for 
now.

Original comment by andres.traks on 3 Oct 2014 at 2:48

GoogleCodeExporter commented 8 years ago
I think this is the same issue:
https://github.com/AndresTraks/BulletSharp/issues/19

BulletSharp linked against signed SharpDX will be in the next release.

Original comment by andres.traks on 19 May 2015 at 12:24