Hello Guest

Author Topic: Question concerning attach points  (Read 3058 times)

Roamer

  • Newbie
  • *
  • Posts: 10
    • View Profile
Question concerning attach points
« on: March 11, 2014, 09:04:55 pm »
Example:

I have a characters body, and his arm is attached to it, which rotates according to the mouse position.
If each frame of the walk animation has the attachpoint, and you move, the attachpoint's rotation "overrides" the current rotation of the transform, causing it to "flicker" between 2 positions, which doesn't look very nice.

TLDR: Any way to set attachpoints up so no rotation is associated with it?

Thanks in advance for any help!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Question concerning attach points
« Reply #1 on: March 12, 2014, 11:35:34 am »
You will need to customise the code for that. You can simply change the tk2dSpriteAttachPoint (comment out line 58, t.localEulerAngles) or duplicate the class and modify the copy.

Roamer

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Question concerning attach points
« Reply #2 on: March 12, 2014, 05:52:33 pm »
Alrighty, thanks for the quick answer! As always excellent support from unikron! <3