:D thanks for the answer
the problem is this:
i have two points: vector3df(x1,y1,z1) and vector3df(x2,y2,z2)
for example the line that connects these two points is long 200px. Now i need to find the end point of the line that starts in vector3df(x1,y1,z1), point to vector3df(x2,y2,z2) and is long ...
Search found 68 matches
- Fri Jan 01, 2010 9:23 pm
- Forum: Beginners Help
- Topic: contrat a line
- Replies: 4
- Views: 616
- Fri Jan 01, 2010 2:56 pm
- Forum: Beginners Help
- Topic: contrat a line
- Replies: 4
- Views: 616
contrat a line
i have a line with the start and the end point. I need to reduce the length of 40px. How? Thanks
- Wed Dec 23, 2009 3:44 pm
- Forum: Beginners Help
- Topic: water light
- Replies: 0
- Views: 681
water light
i have created a node for the water as in the tutorial
IAnimatedMesh* mesh = smgr->addHillPlaneMesh( "water",dimension2d<f32>(75,75),dimension2d<u32>(40,40), 0, 0,dimension2d<f32>(0,0),dimension2d<f32>(25,25));
ISceneNode* node = smgr->addWaterSurfaceSceneNode(mesh->getMesh(0), 3.0f, 300.0f, 30 ...
IAnimatedMesh* mesh = smgr->addHillPlaneMesh( "water",dimension2d<f32>(75,75),dimension2d<u32>(40,40), 0, 0,dimension2d<f32>(0,0),dimension2d<f32>(25,25));
ISceneNode* node = smgr->addWaterSurfaceSceneNode(mesh->getMesh(0), 3.0f, 300.0f, 30 ...
- Wed Dec 23, 2009 2:13 pm
- Forum: Beginners Help
- Topic: draw2DRectangleOutline
- Replies: 9
- Views: 941
- Wed Dec 23, 2009 12:32 pm
- Forum: Beginners Help
- Topic: draw2DRectangleOutline
- Replies: 9
- Views: 941
- Wed Dec 23, 2009 11:10 am
- Forum: Beginners Help
- Topic: draw2DRectangleOutline
- Replies: 9
- Views: 941
- Mon Dec 21, 2009 9:47 am
- Forum: Beginners Help
- Topic: draw2DRectangleOutline
- Replies: 9
- Views: 941
- Sun Dec 20, 2009 7:34 pm
- Forum: Beginners Help
- Topic: draw2DRectangleOutline
- Replies: 9
- Views: 941
draw2DRectangleOutline
i have placed this function in the main loop:
driver->draw2DRectangleOutline(rect< s32 >(263,650,415,658),SColor(255, 255, 255, 255));
I don't understand why, during the execution, it changes thickness from 1 to 2 pixels
driver->draw2DRectangleOutline(rect< s32 >(263,650,415,658),SColor(255, 255, 255, 255));
I don't understand why, during the execution, it changes thickness from 1 to 2 pixels
- Thu Dec 17, 2009 7:59 pm
- Forum: Beginners Help
- Topic: wait
- Replies: 22
- Views: 1824
Code: Select all
u32 now = device->getTimer()->getTime();
static u32 last = now;
if(now>(last+2000)){}- Thu Dec 17, 2009 5:18 pm
- Forum: Beginners Help
- Topic: wait
- Replies: 22
- Views: 1824
wait
i want to set the visibility of a node after 2 seconds, is possible? (the program mustn't be stopped, therefore no sleep... )
- Thu Dec 10, 2009 2:34 pm
- Forum: Beginners Help
- Topic: accent
- Replies: 1
- Views: 334
accent
what is the simplest way to print an accent? ascii?
the code for 'é' is 8a, but if i print \x8a don't works
the code for 'é' is 8a, but if i print \x8a don't works
- Mon Dec 07, 2009 4:57 pm
- Forum: Beginners Help
- Topic: delete enemy
- Replies: 2
- Views: 520
delete enemy
i have created an array of enemies:
enemy.push_back(smgr->addAnimatedMeshSceneNode(smgr->getMesh("../../media/ninja.b3d")));
and when i kill an enemy i delete the enemy with this:
enemy.erase(i);
but why the enemy don't disappear? it is normal?
enemy.push_back(smgr->addAnimatedMeshSceneNode(smgr->getMesh("../../media/ninja.b3d")));
and when i kill an enemy i delete the enemy with this:
enemy.erase(i);
but why the enemy don't disappear? it is normal?
- Thu Dec 03, 2009 10:12 am
- Forum: Beginners Help
- Topic: strange error with a ray
- Replies: 12
- Views: 768
- Wed Dec 02, 2009 9:34 pm
- Forum: Beginners Help
- Topic: strange error with a ray
- Replies: 12
- Views: 768
- Wed Dec 02, 2009 3:15 pm
- Forum: Beginners Help
- Topic: strange error with a ray
- Replies: 12
- Views: 768