MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / setTransform

Method setTransform

Engine/source/T3D/player.cpp:5428–5440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5426//----------------------------------------------------------------------------
5427
5428void Player::setTransform(const MatrixF& mat)
5429{
5430 // This method should never be called on the client.
5431
5432 // This currently converts all rotation in the mat into
5433 // rotations around the z axis.
5434 Point3F pos,vec;
5435 mat.getColumn(1,&vec);
5436 mat.getColumn(3,&pos);
5437 Point3F rot(0.0f, 0.0f, -mAtan2(-vec.x,vec.y));
5438 setPosition(pos,rot);
5439 setMaskBits(MoveMask | NoWarpMask);
5440}
5441
5442void Player::getEyeTransform(MatrixF* mat)
5443{

Callers 5

onAddMethod · 0.45
setPositionMethod · 0.45
buildPolyListMethod · 0.45
updateWaterSoundsMethod · 0.45
createSplashMethod · 0.45

Calls 3

mAtan2Function · 0.85
setPositionFunction · 0.85
getColumnMethod · 0.80

Tested by

no test coverage detected