Search found 5 matches

by wxj
Sun Nov 30, 2008 2:10 am
Forum: Bug reports
Topic: How to make actions such as "die" "pain"
Replies: 2
Views: 681

Well, nice to see you again :lol: Thanks for your attention and I've solved it with an imperfect solution. I seted two variables to mark the start time and the time it would last, then check them in while(device->run){}. If current action ends, change Sydney's behaviour or use setCurrentFrame() to k...
by wxj
Sat Nov 29, 2008 12:46 am
Forum: Bug reports
Topic: How to make actions such as "die" "pain"
Replies: 2
Views: 681

How to make actions such as "die" "pain"

I've used setMD2Animation(EMAT_DEATH_FALLBACK)/setMD2Animation(EMAT_PAIN_B) to make it,
but the model would do that again and again.
Then I used setLoopMode(false) and it would do it once, but it ended with the begin frame. The model I used is "sydney".
How can I make it?
by wxj
Fri Nov 28, 2008 2:50 pm
Forum: Beginners Help
Topic: How to make "FaceTo(vector3df &target)"?
Replies: 4
Views: 188

Thanks a lot!
I learn a lot from here :lol:
by wxj
Fri Nov 28, 2008 2:19 pm
Forum: Beginners Help
Topic: How to make "FaceTo(vector3df &target)"?
Replies: 4
Views: 188

// Where target and seeker are of type ISceneNode* const vector3df toTarget(target->getAbsolutePosition() - seeker->getAbsolutePosition()); const vector3df requiredRotation = toTarget.getHorizontalAngle(); seeker->setRotation(requiredRotation); Note that getHorizontalAngle() will calculate the requ...
by wxj
Fri Nov 28, 2008 1:50 pm
Forum: Beginners Help
Topic: How to make "FaceTo(vector3df &target)"?
Replies: 4
Views: 188

How to make "FaceTo(vector3df &target)"?

As the title,
I want to rotate my model facing to a target model,
now I know the positions of the two models as vector3df variables,
how to make it?
I'm a beginner, and I am sorry for my poor english :oops: