Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Circular dependency when two elements are set to face each other  (Read 2396 times)

Francesco

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Circular dependency when two elements are set to face each other
« on: December 07, 2008, 04:13:14 pm »

Anim8or disallows setting two object to face each other because it would create a circular dependency.

I think this should be changed somehow, because it creates a circular dependency only if they are in the same branch of a hierarchy tree.

In other words, if two objects aren't one parent of the other (whichever the level of "parent/child" you have), then those two objects can actually face each other, with no risk of circular dependency.

This isn't truly important, because this issue can be worked around by adding another object as a placeholder, but I wanted to point it out anyway, as it would be a minor improvement.
« Last Edit: December 07, 2008, 04:16:47 pm by Francesco »
Logged

Francesco

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Re: Circular dependency when two elements are set to face each other
« Reply #1 on: December 07, 2008, 06:12:33 pm »

Actually, I think that only the following cases should be forbidden due to circular reference:
- One object facing or having the same orientation of one of its offsprings (while the other way round should be fine);
- Two objects that rely on each other's orientation (I mean using the "other" option, not the "facing other", which should be fine)
Logged

VBSmiles

  • Full Member
  • ***
  • Posts: 203
    • View Profile
Re: Circular dependency when two elements are set to face each other
« Reply #2 on: December 09, 2008, 01:39:40 am »

Although I personally haven't confirmed what you are stating. It is not needed. Just place a target inside or near one of the objects. This way you have an object facing the second, and the second facing a 3rd ( target )
Logged

Francesco

  • Full Member
  • ***
  • Posts: 182
    • View Profile
Re: Circular dependency when two elements are set to face each other
« Reply #3 on: December 09, 2008, 10:47:33 am »

Yes you're right VBsmiles, and although I already mentioned this workaround in my first post above I'm glad you took the time to drop in and suggest your solution. Everything is fine, Anim8or is fantastic as it is, this is really just a minor issue.
Logged