Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TorqueGameEngines/Torque3D
/ setMomentum
Method
setMomentum
Engine/source/T3D/player.cpp:5444–5448 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5442
}
5443
5444
void Player::setMomentum(const Point3F& newMomentum)
5445
{
5446
Point3F newVelocity = newMomentum / getMass();
5447
mVelocity = newVelocity;
5448
}
5449
5450
#define LH_HACK 1
5451
// Hack for short-term soln to Training crash -
Callers
1
resolveDisplacement
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected