
Search found 22 matches
- Tue May 08, 2012 12:06 am
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Yeah, but I mean is hide these blocks and show only wheels for example in a demo program (cause I have quite similar, not to say almost exactly the same) 

- Mon May 07, 2012 11:54 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
@Update: Do you think is it possible to leave just wheels visible in vehicle body? 

- Mon May 07, 2012 11:22 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Ok, I found a solution with very simple explanation. If someone had the same problem, here's a link: http://forums.create.msdn.com/forums/p/4574/23763.aspx
Thank you Norbo for the all effort you put into solving my problems, I'm very glad I came here for help!
Thank you Norbo for the all effort you put into solving my problems, I'm very glad I came here for help!

- Mon May 07, 2012 10:36 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Yes, I've already learnt that using matrices is some (in my case not huge so far) simplification. But I'm afraid I am forced to use 'regular' (Euler) due to my class requirements (yeah...) and the fact, that I would be forced to completely change some code which I'd really love to avoid :( That's wh...
- Mon May 07, 2012 9:37 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Yepp, everything works fine now. Maybe you remember when I asked about models connected with vehicle? Right now I'm facing this problem, cause I put it off till today. Well, it's just now I have loaded model, working car, the last thing is to glue these two together. I have this code: arModel.Positi...
- Mon May 07, 2012 8:46 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
And what if I would like to reset position on the car? I mean setting position of it is quite obvious, but i would like it to position it horizontally (for example put it on the wheels after it's been flipped). And I've noticed that when driving high speed, the vehicle tends to slide, wondering why?
- Mon May 07, 2012 7:55 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
U're amazing, thanks! But to be honest, I had no idea I would have had so many questions about your vehicle physics implementation. But how can I change center of mass? It seems that it flips over every time I take a turn and I believe that the mass center might be the reason. Also, is there any way...
- Mon May 07, 2012 4:35 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Ok, so I'll try to put it in a different light. I need the exact rotation angle of the car, because I need to use some class that rotates camera using a vector3. But now it seems that it doesn't differ the direction of rotation. And this what I get now is fine, but I have to make it rotate depending...
- Mon May 07, 2012 3:34 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Thanks for the clue! It works, but not totally - I want a camera to follow the car. And to figure out what is wrong, I print the angle from Toolbox.GetAxisAngleFromQuaternion(ref q, out axis, out angle); and it seems to be always a number between 0 and 3.14. But when it passes these values, it also ...
- Mon May 07, 2012 2:29 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Hi again! I must admit that your idea with regular model as a graphics and boxes as a physical model turned out to be gr8 one. But right now I'm facing another problem connected with rotation. I use custom model class, and It requires Vector3 position and Vector3 rotation parameter, which turns the ...
- Thu May 03, 2012 11:08 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
So you mean that I should stay with the idea of var bodies = new List<CompoundShapeEntry>() { new CompoundShapeEntry(new BoxShape(2.5f, .75f, 4.5f), new Vector3(0, 0, 0), 60), new CompoundShapeEntry(new BoxShape(2.5f, .3f, 2f), new Vector3(0, .75f / 2 + .3f / 2, .5f), 10) }; to make approximate shap...
- Thu May 03, 2012 10:59 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
That's a lot of useful information, great! I managed to work everything out with your help, even messed with it for a while tweaking some parameters. But still I'm not entirely sure about loading any fbx as a vehicle model. I figured that I could use TriangleMesh to get vertices and indices model in...
- Thu May 03, 2012 8:50 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Ok, I check their stuff out. I must admit, that the car is totally working (I solved problem with wheels) except for steering. I threw out the part of vehicleinput.update() which was responsible for checking wether it's active or not as it's supposed to be always active. So there are two arguments i...
- Thu May 03, 2012 8:27 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
And about wheels - everything works now (thank you very much!
), but there is a small matter of wheels visibility, or invisibility. I loaded models provided by demo, but now i can't see them. And, can I load some custom .fbx model instead of drawing 2 boxes which imitate a car?

- Thu May 03, 2012 8:09 pm
- Forum: Questions and Help
- Topic: Simple vehicle implementation
- Replies: 42
- Views: 24392
Re: Simple vehicle implementation
Ok, I checked if there are entity of car in space.Entities. I printed them on the screen and it turned out that there are four entities. They are falling from the height I set, but model is still invisible. I am starting to think that maybe it's caused by camera or something? Oh, and now in LoadCont...