HingeCFrameTrack
Rotates along a given axis at the given origin. Used for turntables, tilt tracks, etc. Also used for spinning/rotating cars.
Properties
axis
HingeCFrameTrack.axis:
Enum.Axis
origin
HingeCFrameTrack.origin:
CFrame
useNegativeAngle
HingeCFrameTrack.useNegativeAngle:
boolean
If true
, uses the negative of the given angle (position) when getting the CFrame.
useDegrees
This item is read only and cannot be modified. Read OnlyHingeCFrameTrack.useDegrees:
boolean
If true
, assumes position is in degrees.
If false
, assumes position is in radians.
Used when initializing.
length
This item is read only and cannot be modified. Read OnlyHingeCFrameTrack.length:
number
If useDegrees
is false
, value is math.pi * 2
.
Else, if useDegrees
is true
, value is 360
(as in 360
degrees)
isCircuited
This item is read only and cannot be modified. Read OnlyHingeCFrameTrack.isCircuited:
boolean
Value is always true
as a circle is always a full circuit.
Functions
new
ConstructorHingeCFrameTrack.
new
(
axis:
Enum.Axis
,
useNegativeAngle:
boolean?
,
--
default = false
useDegrees:
boolean?
--
default = false
) →
HingeCFrameTrack
Constructor
fromInstance
ConstructorCreates from an Instance
Children
{
Axis: StringValue, // value can be `X`, `Y`, or `Z`
Origin: CFrameInstance?,
UseNegativeAngle: BoolValue?,
UseDegrees: BoolValue?,
}
getCFrame
Returns the CFrame on the track at the given position