| 299 | } |
| 300 | |
| 301 | void NpActor::setAggregate(NpAggregate* np, PxActor& owner) |
| 302 | { |
| 303 | PxU32 index = 0xffffffff; |
| 304 | NpAggregate* a = getNpAggregate(index); |
| 305 | |
| 306 | if (!a) |
| 307 | { |
| 308 | PX_ASSERT(np); |
| 309 | addConnector(NpConnectorType::eAggregate, np, "NpActor::setAggregate() failed"); |
| 310 | } |
| 311 | else |
| 312 | { |
| 313 | PX_ASSERT(mConnectorArray); |
| 314 | PX_ASSERT(index != 0xffffffff); |
| 315 | if (!np) |
| 316 | removeConnector(owner, index); |
| 317 | else |
| 318 | (*mConnectorArray)[index].mObject = np; |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | PxAggregate* NpActor::getAggregate() const |
| 323 | { |
no outgoing calls
no test coverage detected