mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-08 13:46:21 -04:00
fix TVec3<f32>::setLength
This commit is contained in:
@@ -270,11 +270,7 @@ void JPAConvectionField::calc(JPAFieldData* data, JPABaseParticle* ptcl) {
|
||||
JGeometry::TVec3<f32> newPos;
|
||||
newPos.add(axisX, axisZ);
|
||||
|
||||
if (newPos.isZero()) {
|
||||
newPos.zero();
|
||||
} else {
|
||||
newPos.setLength(data->mVal1);
|
||||
}
|
||||
newPos.setLength(newPos, data->mVal1);
|
||||
|
||||
JGeometry::TVec3<f32> delta, axisY;
|
||||
delta.sub(ptcl->mLocalPosition, newPos);
|
||||
|
||||
Reference in New Issue
Block a user