Wiki 9Minecraft Wiki 9Minecraft
Minecraft Legends › Entities › badger:camera_locomotion

badger:camera_locomotion

Minecraft Legends

Entities
Official docs

Alters the camera position based on follow target's locomotion

TypeNameDefault ValueDescription
Decimaldefault_seconds_aheadDefault amount of seconds to multiply the follow taget's average velocity with in order to position the camera ahead of the follow target.
Listpitch_modifiersList of pitch angle [0, 360] modifiers written in ascending order. These modifiers are used to identify which yaw modifiers should be applied for the camera positioning. Note, this angle is the difference in pitch between the player's velocity vector and the camera look pitch.<br/><h5><p id="angle">angle</p></h5>Angle boundary in degrees [0,360]. Note we interpolate between these boundaries.</br><br><h5><p id="yaw_modifiers">yaw_modifiers</p></h5>List of yaw angle modifiers [0, 360] written in ascending order. These modifiers are used to identiify which additive changes we should apply to our seconds ahead and camera positioning calculation. This angle is the difference in yaw between the player's velocity vector and the camera look yaw.</br><br><h5><p id="angle">angle</p></h5>Angle boundary in degrees [0,360]. Note we interpolate between these boundaries.</br><br><h5><p id="seconds_ahead_delta">seconds_ahead_delta</p></h5>Additive change in seconds ahead amount if modifier met</br><br>
Listspeed_modifiersList of possible speed modifiers.<br/><h5><p id="seconds_ahead_multiplier">seconds_ahead_multiplier</p></h5>Multiplying change in seconds ahead amount if modifier met</br><br><h5><p id="speed">speed</p></h5>Speed boundary. Note we interpolate between these boundaries.</br><br>
Integerticks_to_average_velocity_overAmount of ticks we use to create our average velocity. The larger this is the more 'smooth' changes in camera positioning compared to changes in velocity. 10 is a good baseline.