here's how i done it in my project:
core::vector3df ourPosition = _monster->getPosition();
core::vector3df playerPosition = player->getPosition();
core::vector3df direction = ourPosition - playerPosition;
core::vector3df newRotation = direction.getHorizontalAngle() + core::vector3df( 0 ...
Search found 31 matches
- Fri Jan 05, 2007 11:14 am
- Forum: Beginners Help
- Topic: how to make my node face another? (rotation)
- Replies: 1
- Views: 364
- Sun Dec 31, 2006 7:22 am
- Forum: Off-topic
- Topic: Off till Jan 6/07
- Replies: 3
- Views: 628
- Wed Dec 27, 2006 10:45 am
- Forum: Beginners Help
- Topic: How to make movement by the parabollyc trajection?
- Replies: 0
- Views: 253
How to make movement by the parabollyc trajection?
hello!
could ayou give me short info how i can make an animator, which will move node by the parabollyc trajection?
i know i have to apply
x = (v0* cosα )*t;
y = (v0*sinα)*t - g*t2 / 2
formulas to my node's coordinates depending on the elapsed time, but i have no success with it on this ...
could ayou give me short info how i can make an animator, which will move node by the parabollyc trajection?
i know i have to apply
x = (v0* cosα )*t;
y = (v0*sinα)*t - g*t2 / 2
formulas to my node's coordinates depending on the elapsed time, but i have no success with it on this ...
- Tue Dec 26, 2006 1:43 pm
- Forum: Code Snippets
- Topic: Object Orbiting Camera (Mouse Controlled)
- Replies: 4
- Views: 3944
- Tue Dec 26, 2006 7:00 am
- Forum: Code Snippets
- Topic: Object Orbiting Camera (Mouse Controlled)
- Replies: 4
- Views: 3944
- Sat Dec 23, 2006 4:34 pm
- Forum: Beginners Help
- Topic: protect my models
- Replies: 50
- Views: 6395
- Fri Dec 22, 2006 7:19 pm
- Forum: Beginners Help
- Topic: protect my models
- Replies: 50
- Views: 6395
- Thu Dec 21, 2006 1:37 pm
- Forum: Beginners Help
- Topic: collision detection
- Replies: 9
- Views: 1178
- Thu Dec 21, 2006 5:21 am
- Forum: Beginners Help
- Topic: collision detection
- Replies: 9
- Views: 1178
ming9899, i advice you to have a look at Addison Wesley's book called "Software Engineering and Computer Games", especially its chapter11 'article 11.2 Collision-Handling'. I think you'll find there useful information on your questions.
or i can post these ideas right there, if it is ok. in any case ...
or i can post these ideas right there, if it is ok. in any case ...
- Tue Dec 19, 2006 4:52 pm
- Forum: Project Announcements
- Topic: irrClouds
- Replies: 13
- Views: 9358
- Sat Dec 16, 2006 9:04 am
- Forum: Beginners Help
- Topic: FlyStraightAnimator (movement stuff in general)
- Replies: 8
- Views: 818
- Fri Dec 15, 2006 10:32 am
- Forum: Beginners Help
- Topic: FlyStraightAnimator (movement stuff in general)
- Replies: 8
- Views: 818
- Mon Dec 04, 2006 9:22 pm
- Forum: Beginners Help
- Topic: array vs list
- Replies: 10
- Views: 940
- Sat Dec 02, 2006 9:11 pm
- Forum: Beginners Help
- Topic: Problem with classes [C++ question]
- Replies: 16
- Views: 1138
- Thu Nov 30, 2006 8:35 am
- Forum: Beginners Help
- Topic: Problem with classes [C++ question]
- Replies: 16
- Views: 1138
my problem is still as described above. deep into my bot's AI logic (actually, in AI class, which is agregated in this bot class) I have to get time (i want to make it over pointer_irrlichtEngline->getTimer()->getTime() ), and request my base game class to create special animator for current bot's ...