(joint B2JointInterface)
| 44 | } |
| 45 | |
| 46 | func (island *B2Island) Add(joint B2JointInterface) { // joint has to be a pointer |
| 47 | B2Assert(island.M_jointCount < island.M_jointCapacity) |
| 48 | island.M_joints[island.M_jointCount] = joint |
| 49 | island.M_jointCount++ |
| 50 | } |
| 51 | |
| 52 | /////////////////////////////////////////////////////////////////////////////// |
| 53 | /////////////////////////////////////////////////////////////////////////////// |