MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setPosition

Method setPosition

Engine/source/T3D/player.cpp:5501–5520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5499//----------------------------------------------------------------------------
5500
5501void Player::setPosition(const Point3F& pos,const Point3F& rot)
5502{
5503 MatrixF mat;
5504 if (isMounted()) {
5505 // Use transform from mounted object
5506 //MatrixF nmat,zrot;
5507 mMount.object->getMountTransform( mMount.node, mMount.xfm, &mat );
5508 //zrot.set(EulerF(0.0f, 0.0f, rot.z));
5509 //mat.mul(nmat,zrot);
5510 }
5511 else {
5512 mat.set(EulerF(0.0f, 0.0f, rot.z));
5513 mat.setColumn(3,pos);
5514 }
5515 Parent::setTransform(mat);
5516 mRot = rot;
5517
5518 if ( mPhysicsRep )
5519 mPhysicsRep->setTransform( mat );
5520}
5521
5522
5523void Player::setRenderPosition(const Point3F& pos, const Point3F& rot, F32 dt)

Callers 15

sampleMethod · 0.45
getPositionMethod · 0.45
getTransformMethod · 0.45
getSampleMethod · 0.45
interpolateTickMethod · 0.45
create_splashMethod · 0.45
arcaneFX.cppFile · 0.45
updateMethod · 0.45
ea_updateMethod · 0.45
ea_updateMethod · 0.45
ea_updateMethod · 0.45
getNodeWorldTransformMethod · 0.45

Calls 4

setColumnMethod · 0.80
getMountTransformMethod · 0.45
setMethod · 0.45
setTransformMethod · 0.45

Tested by

no test coverage detected