HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Change facing instantly.

10-01-2008, 03:40 PM#1
grim001
A long time ago I heard that it was possible to edit a model to allow changing facing instantly. Something about setting the interpolation speed between animations to zero. Does anyone know if this is actually possible?
10-01-2008, 04:00 PM#2
Belphegor666
Ask Litany or Kaz. I think they did that thing with insta-facing.
10-01-2008, 04:25 PM#3
Rao Dao Zao
I think the property you're looking for is "Blend Time", which can be set in the Object Editor. Setting this to zero will make models "snap" between animations with no smoothing.

I assumed unit facing was all to do with the turn rate, but I've never really looked into it.
10-01-2008, 04:40 PM#4
grim001
With blend time set to 0 and turn speed set to 99999999, the unit still turns rather slowly. Has anyone confirmed that it is even possible to change facing instantly with a model edit?
10-01-2008, 04:59 PM#5
Rising_Dusk
Quote:
Originally Posted by grim001
Has anyone confirmed that it is even possible to change facing instantly with a model edit?
PM Litany, he and Kaz worked out a very, very, very fast way to change models instantly and it definitely involved editing the model. (They made explicit mention of a customized dummy unit model) I've seen it in action, though I was never informed of the method. I think they're trying to keep it a secret (Along with any other discoveries made for the development of O), that way O will seem more special upon release. Don't quote me on that, though, still PM and ask!
10-01-2008, 04:59 PM#6
Rao Dao Zao
Short of giving the unit a sequence that automatically makes it turn to face a different way, the model's properties have absolutely no effect on that kind of thing. The only thing in a model that is even remotely related to "outside" things are the MoveSpeed properties.
10-01-2008, 05:02 PM#7
Alexander244
Would using SetUnitLookAt, with an attachment point on the bone you change work?
10-01-2008, 05:06 PM#8
Troll-Brain
http://www.wc3campaigns.net/showthre...highlight=face
10-01-2008, 05:07 PM#9
Rao Dao Zao
I suppose you could use that, renaming your root node to Bone_Head or Bone_Chest or whatever of these that function can operate on.
10-01-2008, 05:14 PM#10
Rising_Dusk
Quote:
Originally Posted by Alexander244
Would using SetUnitLookAt, with an attachment point on the bone you change work?
Yes, actually, I do recall them discussing this in a forum at some point. Speaking of which...
Quote:
Originally Posted by Litany
By renaming the base bone to Bone_Head you can use SetUnitLookAt to control facing, and it seems to apply to the unit as a whole, not just the bone. It's probably more trouble than it's worth for dummy casters (assuming it even works for them), but I've found it useful for other things.
http://www.wc3campaigns.net/showpost...69&postcount=9
This is how a lot of the stuff in O has been crafted.
10-01-2008, 06:17 PM#11
grim001
Thanks, I've got it working now.