File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ export const flockMovement = {
104104 appliedHorizontalVelocity = desiredHorizontalVelocity ;
105105 } else {
106106 // airborne: no acceleration toward input, apply drag
107- appliedHorizontalVelocity = currentHorizontalVelocity . scale ( airDragPerTick ) ;
107+ appliedHorizontalVelocity =
108+ currentHorizontalVelocity . scale ( airDragPerTick ) ;
108109 if ( airControlFactor > 0 ) {
109110 appliedHorizontalVelocity = appliedHorizontalVelocity . add (
110111 desiredHorizontalVelocity . scale ( airControlFactor ) ,
@@ -281,7 +282,7 @@ export const flockMovement = {
281282 const model = flock . scene . getMeshByName ( modelName ) ;
282283 if ( ! model || speed === 0 ) return ;
283284
284- const sidewaysSpeed = speed ;
285+ const sidewaysSpeed = - speed ;
285286
286287 // Get the camera's right direction vector (perpendicular to the forward direction)
287288 const cameraRight = flock . scene . activeCamera
You can’t perform that action at this time.
0 commit comments