- Joined
- May 26, 2005
- Messages
- 194
Is there a way to set a units pitch or roll facing?
The only way i can think of is the following:
A dummy model is used to do the roll facing, with lots of animations which each represents a specific facing.
This rolling is applied to the head-bone, then SetUnitLookAt is used on the head-bone doing pitch and normal facing.
However, as SetUnitLookAt resets the facing before it applies the new one, i cannot call this function every 0.03 seconds, that would look ugly, so:
each model to turn would need 2 units, which will be replaced again and again, everytime SetUnitLookAt is used, the old model is placed where the user sees it, the new one gets the new facing, in the next loop the correctly faced unit will replace the currently visible one, and the visible one will be updated and hidden somewhere.... all that, again and again
that solution is quite ugly, and makes ribbon emitters impossible, however, if it works, it would open incredible new possibilities regarding a flight simulator... and ribbons could still be replaced by fast particle emitters
so, all of you, what do you think, is it possible?
any other ideas would be great, too.
The only way i can think of is the following:
A dummy model is used to do the roll facing, with lots of animations which each represents a specific facing.
This rolling is applied to the head-bone, then SetUnitLookAt is used on the head-bone doing pitch and normal facing.
However, as SetUnitLookAt resets the facing before it applies the new one, i cannot call this function every 0.03 seconds, that would look ugly, so:
each model to turn would need 2 units, which will be replaced again and again, everytime SetUnitLookAt is used, the old model is placed where the user sees it, the new one gets the new facing, in the next loop the correctly faced unit will replace the currently visible one, and the visible one will be updated and hidden somewhere.... all that, again and again
that solution is quite ugly, and makes ribbon emitters impossible, however, if it works, it would open incredible new possibilities regarding a flight simulator... and ribbons could still be replaced by fast particle emitters
so, all of you, what do you think, is it possible?
any other ideas would be great, too.