Code: Select all
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.GamerServices;
using BEPUphysics;
using BEPUphysics.Entities.Prefabs;
Code: Select all
space.Add(new Box(Vector3.Zero, 30f, 1f, 30f));
It looks like Monogame has rewritten the Vector3 class from Xna.Framework, but BEPU wants the original Xna.Framework.Vector3. I can of course reference xna binaries in my monogame project and use the Vector3 that BEPU wants, but that means I'll be having to use 2 different versions of seemingly identical classes (not to mention the hassle of specifying which one I want everytime I use it in code).
I tried to strip out the XNA references from BEPU and add in the monogame.framework reference, but to no avail (internal BEPU calls using vector3 gave me the same type mismatch error). Is there something I've done incorrectly in setting up my game project and/or is there a way I can fix this?