passing a Vector3 value when creating a box
Posted: Thu Nov 07, 2013 3:24 am
Ive been tying to pass a vector3 value when creating a box so that i keep track of its position
I have made a public Vector3 called shipPos and Ive been trying to pass the value into the create box like this
public Vector3 shipPos = new Vector3(0,4,0);
shipColBox = new Box(new Vector3(shipPos), 0.9f, 0.9f, 0.9f);
I keep getting the error "cannot convert from 'Microsoft.Xna.Framework.Vector3' to 'float'"
how would I pass in the shipPos?
I have made a public Vector3 called shipPos and Ive been trying to pass the value into the create box like this
public Vector3 shipPos = new Vector3(0,4,0);
shipColBox = new Box(new Vector3(shipPos), 0.9f, 0.9f, 0.9f);
I keep getting the error "cannot convert from 'Microsoft.Xna.Framework.Vector3' to 'float'"
how would I pass in the shipPos?