| 217 | } |
| 218 | |
| 219 | void NpConstraint::setFlags(PxConstraintFlags flags) |
| 220 | { |
| 221 | NP_WRITE_CHECK(getNpScene()); |
| 222 | // check for eBROKEN which is a read only flag |
| 223 | PX_CHECK_AND_RETURN(!(flags & PxConstraintFlag::eBROKEN), "PxConstraintFlag::eBROKEN is a read only flag"); |
| 224 | |
| 225 | PX_CHECK_AND_RETURN(!(flags & PxConstraintFlag::eGPU_COMPATIBLE), "PxConstraintFlag::eGPU_COMPATIBLE is an internal flag and is illegal to set via the API"); |
| 226 | |
| 227 | PX_SIMD_GUARD; |
| 228 | |
| 229 | mConstraint.setFlags(flags); |
| 230 | } |
| 231 | |
| 232 | PxConstraintFlags NpConstraint::getFlags() const |
| 233 | { |
no test coverage detected