CFrame.new()
Identity CFrame at (0, 0, 0) facing forward.
|
CFrame.new(Vector3 v3)
CFrame at Vector3 facing forward.
|
CFrame.new(Vector3 pos, Vector3 target)
CFrame at Vector3
pos facing Vector3 target.
|
CFrame.new(x, y, z)
CFrame at (x, y, z) facing forward.
|
CFrame.new(x, y, z, qX, qY, qZ, qW)
CFrame at (x, y, z) with quaternion (qX, qY, qZ, qW).
|
CFrame.new(x, y, z, r00, r01, r02, r10, r11, r12, r20, r21, r22)
CFrame at (x, y, z) with given rotation matrix.
|
CFrame.Angles(rX, rY, rZ)
CFrame at (0, 0, 0) rotated with Euler angles (rX, rY, rZ) in radians.
|
CFrame.fromAxisAngles(Vector3 unit, number rotation)
Rotated CFrame from unit Vector3 and a rotation in radians.
|
CFrame * CFrame
Return the composition of two CFrames.
|
CFrame * Vector3
Returns Vector3 transformed from Object to World coordinates.
|
CFrame + Vector3
Return CFrame translated in world space by Vector3.
|
CFrame - Vector3
Return CFrame translated in world space by negative Vector3.
|
cf * cf2
cf2 * cf
brick.CFrame:toWorldSpace(v3).
|
Property
|
Description
|
|
Vector3
p |
The 3D position of the CFrame.
|
|
number
x |
The x-component of the Vector3 position.
|
|
number
y |
The y-component of the Vector3 position.
|
|
number
z |
The z-component of the Vector3 position.
|
|
Vector3
lookVector |
The forward-direction component of the CFrame's orientation.
|
|
Vector3
rightVector |
The right-direction component of the CFrame's orientation.
|
|
Vector3
upVector |
The up-direction component of the CFrame's orientation.
|
|
CFrame
cf:inverse()
Returns the inverse of this CFrame.
|
|
CFrame
cf:lerp(CFrame goal, number alpha)
Returns a CFrame interpolated between this CFrame, and the goal CFrame by the fraction alpha.
|
|
CFrame
cf:toWorldSpace(CFrame cf2)
Returns a CFrame transformed from Object to World coordinates. Equivalent to
cf * cf2
|
|
CFrame
cf:toObjectSpace(CFrame cf2)
Returns a CFrame transformed from World to Object coordinates. Equivalent to
cf:inverse() * cf2
|
|
Vector3
cf:pointToWorldSpace(Vector3 v3)
Returns a Vector3 transformed from Object to World coordinates. Equivalent to
cf * v3
|
|
Vector3
cf:pointToObjectSpace(Vector3 v3)
Returns a Vector3 transformed from World to Object coordinates. Equivalent to
cf:inverse() * v3
|
|
Vector3
cf:vectorToWorldSpace(Vector3 v3)
Returns a Vector3 rotated from Object to World coordinates. Equivalent to
(cf - cf.p) * v3
|
|
Vector3
cf:vectorToObjectSpace(Vector3 v3)
Returns a Vector3 rotated from World to Object coordinates. Equivalent to
(cf - cf.p):inverse() * v3
|
|
numbers
cf:components()
Returns the components of the CFrame in this order: x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22.
|
|
numbers
cf:toEulerAnglesXYZ()
Returns the best guess angles that could be used to generatea CFrame using
CFrame.Angles. See Euler angles.
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.