Jump to content

Make actors stay at center point during animation, for camera rotation.


Recommended Posts

Posted

Please look at this code first:

 

 

;lets add stages from other animations
;0 for male, 1 for female
int a1 = Anim.AddPosition(1)

;int position, string animationEvent, float forward = 0.0, float side = 0.0, float up = 0.0, float rotate = 0.0, bool silent = false, bool openMouth = false, bool strapon = true, int sos = 0)

;grabbing animation 1 from arrok lesbian animation 1, stage 2 and then setting the position to 0
Anim.AddPositionStage(a1, "SexypaKiss1F", 0, silent = true, openMouth = false)
Anim.AddPositionStage(a1, "SexypaKiss1F", 0, silent = true, openMouth = false)

;0 for male, 1 for female
int a2 = Anim.AddPosition(0)

;grabbing animation 2 from arrok lesbian animation 2, stage 2 and then setting the position to -100, since busy with mouth make silent, keep mouth open since giving
Anim.AddPositionStage(a2, "SexypaKiss1F", -180, silent = true, rotate=180.0, openMouth = false)
Anim.AddPositionStage(a2, "SexypaKiss1F", -180, silent = true, rotate=180.0, openMouth = false)

 

 

I've added a kissing animation.  Everything works great, except the actors are not at the center pivot point of the camera, so when you rotate with the mouse, you don't actually rotate around the actors at their center, they are off by about 60 units I would say.

 

I tried setting the offset values in AddPositionStage, but no matter where I move them, they seem to always be roughly 50-80 units from the center point of the cameras center.

 

It may be due to the fact I'm rotating the player actor by 180 degrees, but I was hoping I could modify the center value some how?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...