22 void PhysxCapsuleShape::
23 link(NxShape *shapePtr) {
25 _ptr = shapePtr->isCapsule();
26 _ptr->userData =
this;
32 actor->_shapes.add(
this);
38 void PhysxCapsuleShape::
41 _ptr->userData =
nullptr;
42 _error_type = ET_released;
45 actor->_shapes.remove(
this);
54 nassertv(_error_type == ET_ok);
55 _ptr->saveToDesc(shapeDesc._desc);
64 nassertv(_error_type == ET_ok);
65 _ptr->setRadius(radius);
74 nassertv(_error_type == ET_ok);
75 _ptr->setHeight(height);
84 nassertr(_error_type == ET_ok, 0.0f);
85 return _ptr->getRadius();
94 nassertr(_error_type == ET_ok, 0.0f);
95 return _ptr->getHeight();