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

Method buildPolyList

Engine/source/T3D/player.cpp:6060–6071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6058static MatrixF IMat(1);
6059
6060bool Player::buildPolyList(PolyListContext, AbstractPolyList* polyList, const Box3F&, const SphereF&)
6061{
6062 // Collision with the player is always against the player's object
6063 // space bounding box axis aligned in world space.
6064 Point3F pos;
6065 getTransform().getColumn(3,&pos);
6066 IMat.setColumn(3,pos);
6067 polyList->setTransform(&IMat, Point3F(1.0f,1.0f,1.0f));
6068 polyList->setObject(this);
6069 polyList->addBox(mObjBox);
6070 return true;
6071}
6072
6073
6074void Player::buildConvex(const Box3F& box, Convex* convex)

Callers 3

checkDismountPositionMethod · 0.45
canCrouchMethod · 0.45
canStandMethod · 0.45

Calls 6

getColumnMethod · 0.80
setColumnMethod · 0.80
Point3FClass · 0.50
setTransformMethod · 0.45
setObjectMethod · 0.45
addBoxMethod · 0.45

Tested by

no test coverage detected