Search found 12 matches

by Jack Burton
Fri Nov 22, 2013 12:06 am
Forum: Questions and Help
Topic: Collision with terrain
Replies: 2
Views: 3935

Re: Collision with terrain

Amazing Norbo thanks again problem solved :) now on to my next task adding enemys :)
by Jack Burton
Thu Nov 21, 2013 11:28 pm
Forum: Questions and Help
Topic: Collision with terrain
Replies: 2
Views: 3935

Collision with terrain

I have a problem with my player colliding with my terrain I've made a short YouTube video to show the collision in action [youtube] https://www.youtube.com/watch?v=iAyWFoqH_vI [/youtube] as you can see the collision happens way above the terrain, I've went over and over the code and everything seems...
by Jack Burton
Thu Nov 21, 2013 11:05 pm
Forum: Questions and Help
Topic: rotate on y axis
Replies: 4
Views: 5708

Re: rotate on y axis

Thanks Norbo that worked a treat :)
by Jack Burton
Wed Nov 20, 2013 11:46 pm
Forum: Questions and Help
Topic: rotate on y axis
Replies: 4
Views: 5708

Re: rotate on y axis

thanks Norvo I was trying to do it with the AngularVelocity but I wasn't achieving the effect I wanted This is the code I had Ill try AngularVelocity back to (0,0,0) once the key is not pressed see if that works. Ultimatly im try to simulate the controls of an aeroplan if (KeyboardState.IsKeyDown(Ke...
by Jack Burton
Wed Nov 20, 2013 11:00 pm
Forum: Questions and Help
Topic: rotate on y axis
Replies: 4
Views: 5708

rotate on y axis

hi furthering my endeavours with xna and bepu I am trying to simulate a model rotating on the y axis only when i press the corresponding key. whats the best way of going about this

thanks
by Jack Burton
Thu Nov 07, 2013 3:40 pm
Forum: Questions and Help
Topic: passing a Vector3 value when creating a box
Replies: 2
Views: 3393

Re: passing a Vector3 value when creating a box

Thanks Norbo I should have known that :roll: I don't know why I didn't see it must have been that Ive been starring at code for nearly 8 hours yesterday and not getting anywhere fast
by Jack Burton
Thu Nov 07, 2013 3:35 pm
Forum: Questions and Help
Topic: seperating code to other classes
Replies: 5
Views: 6737

Re: seperating code to other classes

Hi thanks for taking the time to help me out, i get a red line under the code " shipModel = new EntityModel(shipColBox, Content.Load<Model>("Models/Ship"), Matrix.Identity, this); " when i move it into the player class. the models collide ok when all the code is in the game class...
by Jack Burton
Thu Nov 07, 2013 3:24 am
Forum: Questions and Help
Topic: passing a Vector3 value when creating a box
Replies: 2
Views: 3393

passing a Vector3 value when creating a box

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...
by Jack Burton
Tue Nov 05, 2013 10:59 pm
Forum: Questions and Help
Topic: seperating code to other classes
Replies: 5
Views: 6737

Re: seperating code to other classes

thanks Norbo :)
by Jack Burton
Tue Nov 05, 2013 10:09 pm
Forum: Questions and Help
Topic: seperating code to other classes
Replies: 5
Views: 6737

seperating code to other classes

Hi I am a beginner to C# and XNA, please forgive me if I am asking lame questions. I have added a player class to tidy up my code so that not all the code is written in the Game class. I created a LoadModel method in my new player class and then called this method in the games LoadContent Method how...
by Jack Burton
Tue Nov 05, 2013 1:39 am
Forum: Questions and Help
Topic: MobileMesh Model anomaly
Replies: 2
Views: 3777

Re: MobileMesh Model anomaly

Thanks Norbo

I cleaned up the code a little and the problem fixed itself I have no Idea what was causing it to display incorrectly so cannot offer a solution.
I did however take you advice and change form a MobileMesh to a box primitive for collision

thanks
by Jack Burton
Sun Nov 03, 2013 10:14 pm
Forum: Questions and Help
Topic: MobileMesh Model anomaly
Replies: 2
Views: 3777

MobileMesh Model anomaly

Hi I have a problem with a model I have been using as it seems to be missing some of the mesh when I draw it to the game window. The model on the right is drawn as you would normally, while the model on the left that is missing part of the mesh is drawn using Bepu's MobileMesh. Has anyone seen this ...