#Algo Movement Orientation Mess

19 messages · Page 1 of 1 (latest)

gilded zodiac
#

When you change CFrame property of something It affects both the orientation and position. So most likely after u used CFrame.lookat() to change the orientation, the tween afterwards as it moved toward the end goal, it not only changed the position but the orientation too

#

Hmm

#

Why don't you try changing the Position property instead of CFrame

#

hmm

#

Ok I think I know what the problem is. When you do CFrame.new() alone it resets the orientation back to 0 so you need to multiply that with CFrame.Angels() to set the orientation of the end goal

#
CFrame = RIG:GetPivot():Lerp(CFrame.new(Position),1)
wet geyserBOT
#

studio** You are now Level 1! **studio

gilded zodiac
#

Hmm since you have a target I assume that you to need to face at

#

thinking

#

Try it but I am not sure if it's going to work

#

I am not quite good with CFrame manipulation and math. Can you test to see if the orientation produced by this expression, "* CFrame.Angles(0, math.rad(CFrame.lookAt(RIG:GetPivot().Position, Position).Y), 0)" is correct?

#

Did you get any different results after you made that change?

#

And the orientation? Is it good?

#

So it still keeps getting reset to 0,0,0?

#

So the problem is with that expression

#

We need to make some changes to this.

  • CFrame.Angles(0, math.rad(CFrame.lookAt(RIG:GetPivot().Position, Position).Y), 0)
#

ok but the problem is not solved though..?

#

kk

#

: )