Is there a reason for PlayerData::swimForce to be unused?
by Daniel Buckmaster · in Torque 3D Professional · 06/30/2014 (10:00 am) · 2 replies
I just got bitten by this:
// from player.cpp
F32 maxAcc = (mDataBlock->swimForce / getMass()) * TickSec;
if ( false && swimSpeed > maxAcc )
swimAcc *= maxAcc / swimSpeed;Does anyone know if swimForce is not working properly or would have some other reason to be disabled? I removed the false and it seems to work fine for me.About the author
Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!
#2
07/01/2014 (9:21 am)
Maybe. It works fine in my non-physics build. Maybe I'll give it a test later with physics enabled. Pull request.
Torque Owner Richard Ranft
Roostertail Games