That looks like you have an object with an ID of 0. I assumed from the sample file - and lack of requirements - that your objects were 1 indexed. If they're 0 indexed, then you could change the indexing in the code, e.g.:
objects.set_used(id + 1);
...
objects[id] = newNode;
...
objects[command ...
Search found 13 matches
- Thu Aug 07, 2008 6:49 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
- Wed Aug 06, 2008 11:08 am
- Forum: Beginners Help
- Topic: rotation of model
- Replies: 5
- Views: 469
- Wed Aug 06, 2008 8:02 am
- Forum: Beginners Help
- Topic: rotation of model
- Replies: 5
- Views: 469
kool.. will have a look and try implementing. the getHorizontalangle() function is easy way.alrusdi wrote:http://irrlicht.sourceforge.net/phpBB2/ ... php?t=1325
- Wed Aug 06, 2008 8:01 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
- Wed Aug 06, 2008 6:30 am
- Forum: Beginners Help
- Topic: rotation of model
- Replies: 5
- Views: 469
rotation of model
hello,
i have a model. i need to make move. from point P1 to P2. I need to calculate the angle for the model to turn to tat vector and then i can move it.
suppose i have p1 = (0,0,0) and p2 = (10, 0, 10);
The character has to turn 45degrees to face that vector. I tried calculating the rotation ...
i have a model. i need to make move. from point P1 to P2. I need to calculate the angle for the model to turn to tat vector and then i can move it.
suppose i have p1 = (0,0,0) and p2 = (10, 0, 10);
The character has to turn 45degrees to face that vector. I tried calculating the rotation ...
- Wed Aug 06, 2008 3:28 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
Re: reading file data and making models move accordingly
RUN,ID,x,y,z,time
Spline animators don't have any concept of 'time' though; they just move at a fixed speed through all of their points.
Can you explain a little more about what all the parameters mean? In fact, if you can provide specific requirements and a sample resource file, I'll likely ...
Spline animators don't have any concept of 'time' though; they just move at a fixed speed through all of their points.
Can you explain a little more about what all the parameters mean? In fact, if you can provide specific requirements and a sample resource file, I'll likely ...
- Wed Aug 06, 2008 2:55 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
If you're running on a desktop, memory is cheap, while filesystem access is still (relatively) slow. On a mobile device, memory is more expensive, but filesystem access is even slower.
I'd go for storing everything in memory, rather than doing incremental file reads. 200 objects * 20 movement per ...
I'd go for storing everything in memory, rather than doing incremental file reads. 200 objects * 20 movement per ...
- Wed Aug 06, 2008 2:51 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
- Tue Aug 05, 2008 9:47 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
- Tue Aug 05, 2008 8:22 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
- Tue Aug 05, 2008 6:41 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
- Tue Aug 05, 2008 6:32 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
Re: reading file data and making models move accordingly
RUN,ID,x,y,z,time
Spline animators don't have any concept of 'time' though; they just move at a fixed speed through all of their points.
Can you explain a little more about what all the parameters mean? In fact, if you can provide specific requirements and a sample resource file, I'll likely ...
Spline animators don't have any concept of 'time' though; they just move at a fixed speed through all of their points.
Can you explain a little more about what all the parameters mean? In fact, if you can provide specific requirements and a sample resource file, I'll likely ...
- Mon Aug 04, 2008 3:30 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 995
reading file data and making models move accordingly
hello,
am new 2 this engine. I am doing a visualization on it. I have the coordinates of the model at each step.
I want to know of a tutorial to read the file and make the object move accordingly.
My file is as follows:
RUN,ID,x,y,z,time
...
....
....
Can anyone give me a good tutorial on this ...
am new 2 this engine. I am doing a visualization on it. I have the coordinates of the model at each step.
I want to know of a tutorial to read the file and make the object move accordingly.
My file is as follows:
RUN,ID,x,y,z,time
...
....
....
Can anyone give me a good tutorial on this ...