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.Axisorigin
HingeCFrameTrack.origin: CFrameuseNegativeAngle
HingeCFrameTrack.useNegativeAngle: booleanIf 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: booleanValue 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
) → HingeCFrameTrackConstructor
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