shithub: tinygl

Download patch

ref: dca221c7ace3880930814b1847d14d4efa5ab1a9
parent: 23faf44ceab5799b55ce9e3536bb1d686a2b1b86
author: gek169 <gek169>
date: Mon May 10 21:18:34 EDT 2021

Automatic commit.

--- a/include-demo/chadphys.h
+++ b/include-demo/chadphys.h
@@ -98,7 +98,7 @@
 		if(test > 0)
 			a_planarvel = subv3(a_relvel,
 								 scalev3(
-								 	dotv3(a_relvel, penvecnormalized),
+								 	test,
 								 	penvecnormalized
 								 )
 								);
@@ -118,7 +118,7 @@
 		if(test < 0)
 			b_planarvel = subv3(b_relvel,  //brelvel - portion of brelvel in the direction of penvecnormalized
 									scalev3(
-										dotv3(b_relvel, penvecnormalized), //the component in that direction
+										test, //the component in that direction
 										penvecnormalized //that direction
 									)
 								);