Search found 10 matches
- Tue May 22, 2007 1:34 pm
- Forum: Beginners Help
- Topic: How to get direction vector
- Replies: 4
- Views: 295
- Tue May 22, 2007 12:36 pm
- Forum: Beginners Help
- Topic: How to get direction vector
- Replies: 4
- Views: 295
How to get direction vector
Hi.
I have this situation:
and I dont know how to get direction vector (marked on red). I need it to show Newton dynamics the direction in which the cannonball will fly.
Thanks for help
I have this situation:
and I dont know how to get direction vector (marked on red). I need it to show Newton dynamics the direction in which the cannonball will fly.
Thanks for help
- Sun May 20, 2007 3:49 pm
- Forum: Game Programming
- Topic: Cannonball simulation
- Replies: 1
- Views: 1613
Cannonball simulation
Hi, I know that this isn't Newton dynamics forum, but many people here know a lot about Newton, there so i decided to ask. I'am writing simulation of cannon using irrlicht and newton. I managed to do Newton car for cannon cart but i can't make the cannon ball to move. I mean that I dont know how to ...
- Sun May 06, 2007 6:28 pm
- Forum: Beginners Help
- Topic: Problem with object rotation
- Replies: 7
- Views: 422
- Sun May 06, 2007 5:02 pm
- Forum: Beginners Help
- Topic: Problem with object rotation
- Replies: 7
- Views: 422
Ok that sounds nice, but could you show me some code that makes child object?? becouse I'am new to irrlicht and i don't know how to do that. Only question is, isn't it the same as: vector3df RelativeToCar(0,30,0); ((ISceneNode*)carnode)->getAbsoluteTransformation().rotateVect (RelativeToCar); cannon...
- Sun May 06, 2007 4:18 pm
- Forum: Beginners Help
- Topic: Problem with object rotation
- Replies: 7
- Views: 422
- Sat May 05, 2007 11:43 am
- Forum: Beginners Help
- Topic: [solved] ITerrainSceneNode + Newton Game Dynamics
- Replies: 5
- Views: 581
I searched i found this working: NewtonCollision* nMapCollision = NewtonCreateTreeCollision(nWorld, NULL); NewtonTreeCollisionBeginBuild(nMapCollision); int cMeshBuffer, j; int v1i, v2i, v3i; IMeshBuffer *mb; float vArray[9]; // vertex array (3*3 floats) int tmpCount = 0; scene::SMeshBufferLightMap ...
- Sat May 05, 2007 11:38 am
- Forum: Beginners Help
- Topic: Problem with object rotation
- Replies: 7
- Views: 422
Problem with object rotation
Hi, I'am writing a simple simulation of cannon using irrlicht and newton dynamics. The problem is, i can't rotate it (lift up or down) I can make the gun to move with the cat: void _cdecl PhysicsCarSetTransform(const NewtonBody *body, const dFloat *matrix) { matrix4 mat; memcpy(mat.pointer(), matrix...
- Tue Apr 24, 2007 8:14 pm
- Forum: Beginners Help
- Topic: Camera folllowing car
- Replies: 1
- Views: 283
Camera folllowing car
Hi, I'am having a problem with camera. I want it to follow car. W tried: vector3df carPos = carnode->getPosition(); actualCamera->setPosition(core::vector3df(carPos.X+800,carPos.Y+800,carPos.Z)); actualCamera->setTarget(core::vector3df(carPos.X-800,carPos.Y,carPos.Z)); But it don't works like those ...
- Fri Apr 20, 2007 12:54 pm
- Forum: Beginners Help
- Topic: [solved] ITerrainSceneNode + Newton Game Dynamics
- Replies: 5
- Views: 581
[solved] ITerrainSceneNode + Newton Game Dynamics
Hi, I'am trying to generate Newton Map Cillision for Newton World. I tried to use code from one of examples from Irrilicht tutorial site: terrainMesh = terrain->getMesh(); nMapCollision = NewtonCreateTreeCollision(nWorld, NULL); NewtonTreeCollisionBeginBuild(nMapCollision); u32 cMeshBuffer, j; int v...