Adding something to person in game

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Dronchik
Posts: 36
Joined: Sun Feb 17, 2008 1:30 pm
Location: Kazahstan::Astana
Contact:

Adding something to person in game

Post by Dronchik »

Hi everyone)
first: Happy New Year :)
second: I have person in my game - man who must have ability for hand-fighting and fighting if he can tool(for example: He have sword).
How make first variant, I know. But how make second path, I don't know. And this is my question. How can I add a sword to the hand of my person?
I think, I'd use the dummies of 3dMax and add sword to the dummie that positioned in hand of my person. But I don't know, does Irrlicht work with dummies?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, you do this with bones/joints. Simply get the bone scene node and attach a child (the sword scene node)
Dronchik
Posts: 36
Joined: Sun Feb 17, 2008 1:30 pm
Location: Kazahstan::Astana
Contact:

Post by Dronchik »

Hybrid, thanks for an answer :) I'll do it, as you told.
Post Reply