Why would
print(CFrame.new(-10,-10,-10):VectorToObjectSpace(Vector3.new(30,30,30)))
print “30, 30, 30”
Why would
print(CFrame.new(-10,-10,-10):VectorToObjectSpace(Vector3.new(30,30,30)))
print “30, 30, 30”
It might be since you are printing the new location (aka vector3.new), and when you print things with steps, such as an equation (EX: print(6+4) would print 10).
Hope that made sense.
Uh, I don’t really get it [char limit]
What I’m trying to say is, If the thing you are printing isn’t a String (has “quotation marks”), Then it will always print the final product, similarly to an equation.
local thing = CFrame.new(-10,-10,-10):VectorToObjectSpace(Vector3.new(30,30,30))
print(thing)
this doesnt work either though
You’re printing a Vector3
, try:
print(Vector3.one)
it’ll print 1, 1, 1
.
I think you guys are missing the point, the output is printing the wrong answer
Well, What are you trying to print? The new location?
Indeed, the value that the function returns.
but I believe the answer is wrong [charlimit]
Well, I honestly have no clue. Maybe someone else might be able to help you, but I think I’m down and out on this one.
Well you needed to be more clear
30, 30, 30
is indeed the correct result, the created cframe has no rotation and thus VectorToObjectSpace
has no effect. VectorToObjectSpace
just rotates the passed vector from world space to object space, and since there’s no orientation, it doesn’t change.
Oh, I didn’t realize it was rotation, thank you!
Anytime :). .
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.