sroge445Join Date: 2008-06-02 Post Count: 5590 |
And by that I mean, can you mess with the lookVector so it becomes like it's rightVector, or backVector? |
|
|
sroge445Join Date: 2008-06-02 Post Count: 5590 |
I mean like do something mathmatical that changes the value a little.
like:
a = script.Parent.CFrame.lookVector
math here.
And you get a different value... Does anyone see what I'm trying to say?.... I'm bad at explaining this kind of thing... |
|
|
I understand what you mean, but I don't know hoq to solve for it.
It IS possible, I believe Meelo knows bout that, ask him. |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
Yes:
TopVector = (part.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector |
|
sroge445Join Date: 2008-06-02 Post Count: 5590 |
Thanks xLx. Would the bottemVector be the same, but it would be "math.pi/-2"> |
|
|
sroge445Join Date: 2008-06-02 Post Count: 5590 |
That would have been my second guess. I knew you hade to opposite something... |
|
Clone512Join Date: 2008-03-02 Post Count: 7810 |
"*2 I think...", I wouldn't think so....
math.pi is 180 degrees (or one radian), therefore math.pi/2 should be 90 degrees.
math.pi*2 would be a full turn (360 degrees, or two radians). |
|
Clone512Join Date: 2008-03-02 Post Count: 7810 |
I think this is what you're looking for:
TopVector = (part.CFrame * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0)).lookVector |
|
|
xLEG0x already said that Clone...
He's looking for the bottom vector nao...
Which, if I'm not mistaken, should be...
TopVector = (part.CFrame * CFrame.fromEulerAnglesXYZ(-math.pi/2*3, 0, 0)).lookVector
Multiplies by three, as that would be 3*90 degrees. |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
math.pi/2 == -math.pi/2*3
bottom would just be -math.pi/2 |
|
|
Ooops.
BottomVector, not TopVector.
I just copy-pasted.
And edited.
So much easier that way. |
|
|
xLEG0x...
How would math.pi/2 be the same as three times math.pi/2?
It isn't.
math.pi/2 == 1.5707963267949
math.pi/2*3 == 4.7123889803847 |
|
|
Oh wait...
*Facepalm*
Nevermind.
I see what you are sayign nao.
One quick question though...
How might I get a VehicleSeat to "float" without a bodyposition? |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
"math.pi/2 == 1.5707963267949
math.pi/2*3 == 4.7123889803847"
"math.pi/2 == -math.pi/2*3", note the negative.
And or course they don't equal, I mean when applied as a rotation they both end in the same ambiguous case. |
|
Clone512Join Date: 2008-03-02 Post Count: 7810 |
"xLEG0x already said that Clone...
He's looking for the bottom vector nao...
Which, if I'm not mistaken, should be... ", I forgot to change the variable name, I posted what would be the bottom vector. >_> |
|
McJimJoin Date: 2010-02-18 Post Count: 2456 |
BUMP!!!!! |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Did they not have CF * CF == V3 in the past? |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
correction: CF * V3 |
|
|
lookVector:Cross(Vector3.new(0, 1, 0))
Something like that for one of the sides, I think. |
|
|
WHY DO I NEVER CHECK POST DATE!?
RAIG! |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
I also just noticed... |
|