X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=rigidbody.h;h=282643a1eb0b01f6672207ea6e894d40f4beae46;hb=5ecf9cca8b5b9bf876d7e7c7fde03d5b187bb42b;hp=0a95bddf014430f4ac7c53bab13113c4ba6296b0;hpb=b9dedb4dd2a1e94ae76a3986716ee3c57e568213;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/rigidbody.h b/rigidbody.h index 0a95bdd..282643a 100644 --- a/rigidbody.h +++ b/rigidbody.h @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved + */ + /* * Resources: Box2D - Erin Catto * qu3e - Randy Gaul @@ -1862,10 +1866,10 @@ static void rb_effect_simple_bouyency( rigidbody *ra, v4f plane, float depth = v3_dot( plane, ra->co ) - plane[3], lambda = vg_clampf( -depth, 0.0f, 1.0f ) * amt; - v3_muladds( ra->v, plane, lambda * ktimestep, ra->v ); + v3_muladds( ra->v, plane, lambda * VG_TIMESTEP_FIXED, ra->v ); if( depth < 0.0f ) - v3_muls( ra->v, 1.0f-(drag*ktimestep), ra->v ); + v3_muls( ra->v, 1.0f-(drag*VG_TIMESTEP_FIXED), ra->v ); } /*