MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / resize

Method resize

physx/source/lowlevel/software/src/PxsIslandSim.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78#endif
79
80void IslandSim::resize(const PxU32 nbNodes, const PxU32 nbContactManagers, const PxU32 nbConstraints)
81{
82 PxU32 totalEdges = nbContactManagers + nbConstraints;
83 mNodes.reserve(nbNodes);
84 mIslandIds.reserve(nbNodes);
85 mEdges.reserve(totalEdges);
86 mActiveContactEdges.resize(totalEdges);
87 mEdgeInstances.reserve(totalEdges*2);
88}
89
90void IslandSim::addNode(bool isActive, bool isKinematic, Node::NodeType type, NodeIndex nodeIndex)
91{

Callers 14

createContactManagerMethod · 0.45
SimpleIslandManagerMethod · 0.45
addContactManagerMethod · 0.45
addConstraintMethod · 0.45
updateCCDMethod · 0.45
addNodeMethod · 0.45
addConnectionMethod · 0.45
addConnectionToGraphMethod · 0.45
processNewEdgesMethod · 0.45
processLostEdgesMethod · 0.45
setDynamicMethod · 0.45

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected