int x = int(vector.X);
int y = int(vector.Y);
int z = int(vector.Z);
or exchange "int" for "s32"
make sure you havent mistyped the vector name. If you're using visual studio it should pop up the members of vector after you get to "vector."... if not then you may have an error elsewhere. Make sure ...
Search found 61 matches
- Thu Apr 13, 2006 11:41 am
- Forum: Beginners Help
- Topic: vector3df to int
- Replies: 8
- Views: 999
- Tue Apr 11, 2006 4:19 am
- Forum: Beginners Help
- Topic: total n00b here, major help needed
- Replies: 3
- Views: 401
- Mon Apr 10, 2006 8:26 am
- Forum: Beginners Help
- Topic: Space flight navigation - anticollision AI
- Replies: 3
- Views: 465
- Sun Apr 09, 2006 9:50 pm
- Forum: Beginners Help
- Topic: Space flight navigation - anticollision AI
- Replies: 3
- Views: 465
Space flight navigation - anticollision AI
I've got a bunch of ships flying around in 3d space and its time for me now to keep them from running into each other. Right now the ships just fly from point a to b (either a location or target ship), with realistic drift and maneuverability factored in. I know how to use the collision manager but ...
- Wed Mar 22, 2006 2:47 pm
- Forum: Beginners Help
- Topic: Showing a model in more than one place?
- Replies: 4
- Views: 727
- Mon Mar 20, 2006 10:31 pm
- Forum: Beginners Help
- Topic: Showing a model in more than one place?
- Replies: 4
- Views: 727
- Mon Mar 20, 2006 1:34 pm
- Forum: Beginners Help
- Topic: Detecting if the person is touching the ground
- Replies: 3
- Views: 497
- Mon Mar 20, 2006 6:14 am
- Forum: Beginners Help
- Topic: Showing a model in more than one place?
- Replies: 4
- Views: 727
Showing a model in more than one place?
For example if i want to spray bullets everywhere, Is it possible to just use the model for my bullet and draw it multiple times in different places? It seems like a waste to have a node for each individual bullet. Thanks.
- Mon Mar 13, 2006 2:02 am
- Forum: Beginners Help
- Topic: anti-aliasing and 2d
- Replies: 0
- Views: 237
anti-aliasing and 2d
I noticed that whenever I enable anti-aliasing, my sprites/2d images get messed up. What I mean is, for example i loaded in a rect from my image 1,1 to 100,100... with anti aliasing off it works fine, but with it on, for some reason the image goes to 101,101. Is there a workaround for that or do I ...
- Sun Feb 05, 2006 9:40 pm
- Forum: Beginners Help
- Topic: question about Irrlicht shadows.
- Replies: 3
- Views: 645
- Sat Feb 04, 2006 10:45 pm
- Forum: Beginners Help
- Topic: question about Irrlicht shadows.
- Replies: 3
- Views: 645
question about Irrlicht shadows.
In my scenes, I'm using .x models, and i know how to create lights and set the model material etc, but the models arent casting shadows on each other. Can irrlicht not do this yet or is there something special I need to do to cast shadows? I don't need to create a whole world for what i'm doing so i ...
- Wed Dec 21, 2005 3:05 am
- Forum: Beginners Help
- Topic: what am I doing wrong? (shading)
- Replies: 0
- Views: 222
what am I doing wrong? (shading)
all of my character models work fine, but for some reason the ground isnt shading/lighting right. I don't need a full 3d environment for my game, so I just made a flat textured ground for my models to walk around on and cast shadows on.
All my models are .x format, and I use the same procedeure to ...
All my models are .x format, and I use the same procedeure to ...
- Tue Dec 20, 2005 4:59 pm
- Forum: Beginners Help
- Topic: microsoft visual studio.net 2003 closing for no reason.
- Replies: 3
- Views: 439
So, having a large cpp could cause it to crash?
are you talking about tools-options-text editor? there's no plain "editor" in my list. Then when i go under text editor, i have to go under "all languages", and theres only three statement completion options - auto list members, hide advanced members ...
are you talking about tools-options-text editor? there's no plain "editor" in my list. Then when i go under text editor, i have to go under "all languages", and theres only three statement completion options - auto list members, hide advanced members ...
- Tue Dec 20, 2005 10:30 am
- Forum: Beginners Help
- Topic: microsoft visual studio.net 2003 closing for no reason.
- Replies: 3
- Views: 439
microsoft visual studio.net 2003 closing for no reason.
For some reason whenever i work on a certain project, visual studio will suddenly close itself after a minute or two of having it open. It doesnt seem to do it with any other projects. It had worked fine until the other day, and I hadnt made any real changes to the code either. Any idea why it would ...
- Wed Nov 09, 2005 7:53 am
- Forum: Beginners Help
- Topic: System.NullReferenceException error when I alt-tab and back.
- Replies: 7
- Views: 640