MCBE
OverviewPacketsCameraSpline
ID 0x152 · 338Server → ClientGraphics

CameraSpline

Sent by the server to clients for initializing custom spline data that can be played later through the camera command.

camera-spline.bin
struct CameraSpline {
  varuint32 [] · CameraSplineDefinition[]      Splines;
}

Structure

FieldTypeDescription
Splinesvaruint32 count + CameraSplineDefinition[]Length-prefixed sequence.

Structure of CameraSplineDefinition

FieldTypeDescription
Namestring
Total Timefloat32 (LE)
Spline Typestring
Spline Control Pointsvaruint32 count + CameraSplineControlPoint[]Length-prefixed sequence.
Spline Progress Framesvaruint32 count + CameraSplineProgressKeyFrame[]Length-prefixed sequence.
Spline Rotation Framesvaruint32 count + CameraSplineRotationKeyFrame[]Length-prefixed sequence.

Structure of CameraSplineControlPoint

FieldTypeDescription
PositionVec3

Structure of CameraSplineProgressKeyFrame

FieldTypeDescription
Alphafloat32 (LE)
Time Secondsfloat32 (LE)
Easing Typestring

Structure of CameraSplineRotationKeyFrame

FieldTypeDescription
RotationVec3
Time Secondsfloat32 (LE)
Easing Typestring

Structure of Vec3

FieldTypeDescription
Xfloat32 (LE)
Yfloat32 (LE)
Zfloat32 (LE)

Notes

  • No special notes.