18 TypeHandle PhysxBoxForceFieldShape::_type_handle;
23 void PhysxBoxForceFieldShape::
24 link(NxForceFieldShape *shapePtr) {
26 _ptr = shapePtr->isBox();
27 _ptr->userData =
this;
33 group->_shapes.add(
this);
39 void PhysxBoxForceFieldShape::
42 _ptr->userData =
nullptr;
43 _error_type = ET_released;
46 group->_shapes.remove(
this);
55 nassertv(_error_type == ET_ok);
56 _ptr->saveToDesc(shapeDesc._desc);
68 nassertv(_error_type == ET_ok);
81 nassertr(_error_type == ET_ok, LVector3f::zero());