Search found 73 matches

by CZestmyr
Mon Sep 05, 2005 5:47 pm
Forum: Advanced Help
Topic: Pb with an FPS camera and collision
Replies: 5
Views: 840

I think there's a problem with the changeCamera function. You shouldn't add the animator more times than once and you should definitely not drop the pointer to it more than once, because it would delete the animator (if I understand this grab(), drop() stuff correctly). So maybe all you should do is...
by CZestmyr
Mon Sep 05, 2005 5:27 pm
Forum: Beginners Help
Topic: [AI class] problem with rotation
Replies: 9
Views: 425

It must work. At least it causes no problem on my compoter :P Tips: 1. Do I really see 'GetHorizontalAngle' with uppercase G? Do you know, that C++ is case-sensitive? Th function name is getHorizontalAngle() 2. What version of irrlicht are you using? Use the highest version number, if possible. I my...
by CZestmyr
Mon Sep 05, 2005 5:12 pm
Forum: Advanced Help
Topic: Sky Box resize??
Replies: 4
Views: 710

I think it is not a bug. Skyboxes are meant to be static and non-resizeable. And by the way, resiying can't help you. The vertices may be further, but the angles remain the same.

BTW. What do you want this effect for and why can't it be dione by changing the fov?
by CZestmyr
Mon Sep 05, 2005 4:34 pm
Forum: Advanced Help
Topic: Irrlicht pathfinding class available
Replies: 35
Views: 6917

2 Electron: The forum is buggy in the last few days, isn't it? :D The algorithm really is A* (or a very near equivalent), because it's main features are path measuring, sorting explored paths by distance and simple heuristics (exploring more promising directions first). The only thing that is not en...
by CZestmyr
Mon Sep 05, 2005 6:24 am
Forum: Beginners Help
Topic: Timer & FPS
Replies: 3
Views: 290

I don't know what is your problem, but physical formulas are clear:
v = a * dt
s = v * dt
with relatively small dt, which is your case, you can use
v = a * t
s = v * t
by CZestmyr
Mon Sep 05, 2005 6:21 am
Forum: Beginners Help
Topic: Pb with an FPS camera and a collision with the ground
Replies: 2
Views: 230

Why do you post your message in more forums?
by CZestmyr
Mon Sep 05, 2005 6:14 am
Forum: Advanced Help
Topic: Pb with an FPS camera and collision
Replies: 5
Views: 840

Teleportation

Hi, I don't know, how to solve your problem with the crouching in the house, but I know how to solve the teleportation. Simply remove the collision animator from the node, teleport your node, then add the animator again. camera->removeAnimator(anim); camera->setPosition(x.xf,x.xf,x.xf); camera->addA...
by CZestmyr
Sun Sep 04, 2005 7:04 pm
Forum: Beginners Help
Topic: pivot
Replies: 1
Views: 226

Copied from the reference manual: void rotateXYBy (f64 degrees, const vector3d< T > &center) void rotateXZBy (f64 degrees, const vector3d< T > &center) void rotateYZBy (f64 degrees, const vector3d< T > &center) These are functions of a vector3df class, which represents a point in 3d spac...
by CZestmyr
Sun Sep 04, 2005 6:59 pm
Forum: Beginners Help
Topic: [AI class] problem with rotation
Replies: 9
Views: 425

You can't do it this way. If the vector3df is used for rotation, it has the data stored in radians (i gues), but your function returns just the distance from you to the enemy. I suggest you do this: vector3df vec = me->getPosition() - enemy->getPosition(); vec.getHorizontalAngle(); //This then conve...
by CZestmyr
Sun Sep 04, 2005 6:29 pm
Forum: Advanced Help
Topic: Irrlicht pathfinding class available
Replies: 35
Views: 6917

Hurray! I managed to solve the problem. It was something with the core::list<T> Iterators and their functions. Some function using these iterators didn't work properly when the iterator was end(). Anyway, the class is finally done and you can download it here: http://www.czestmyr.wz.cz/other/irrpat...
by CZestmyr
Sun Sep 04, 2005 1:34 pm
Forum: Advanced Help
Topic: Irrlicht pathfinding class available
Replies: 35
Views: 6917

2 etcaptor: Good idea, but I have to copy the list, that's part of the pathfinding algorithm.
by CZestmyr
Sun Sep 04, 2005 1:31 pm
Forum: Advanced Help
Topic: Irrlicht pathfinding class available
Replies: 35
Views: 6917

2 FlyHigh: Yes, I created the assignment operator with the copy constructor. The path class doesn't include anything more than inherited members of core::list<T> and a few functions, which can't cause any problem. By the way: my copy constructor and assignment operator do this: They call clear() to ...
by CZestmyr
Sun Sep 04, 2005 1:07 pm
Forum: Advanced Help
Topic: Irrlicht pathfinding class available
Replies: 35
Views: 6917

Irrlicht pathfinding class available

Hi, I created my own A* Pathfinding class, which worked well. Later I wanted to implement 3D pathfinding in Irrlicht, which also worked well. But because I used my own linked list class in the PF Class, I decided to remake the PF Class so that it would use Irrlicht classes only. And that's where a p...
by CZestmyr
Tue Mar 01, 2005 7:48 pm
Forum: Beginners Help
Topic: How to make a derived class?
Replies: 5
Views: 267

Going off topic, but Bal, that amount of typing, you must be tired??? :lol: :lol: Bwa, looking at it now it isn't that long indeed *g*. But it took some time to think how I could explain something I understand in clear language to someone who doesn't know a lot of it appereantly (no offense of cour...
by CZestmyr
Mon Feb 28, 2005 6:18 pm
Forum: Beginners Help
Topic: How to make a derived class?
Replies: 5
Views: 267

How to make a derived class?

Hi, I'm still just playing around with Irrlicht and trying different things. I wanted to make a simple model of a solar system and I wanted to create my own IPlanetSceneNode for this, which would be derived from the IAnimatedMeshSceneNode class. The new class would contain data like mass of the plan...