Joint definitions are used to construct joints.
| 60 | |
| 61 | /// Joint definitions are used to construct joints. |
| 62 | type B2JointDef struct { |
| 63 | |
| 64 | /// The joint type is set automatically for concrete joint types. |
| 65 | Type uint8 |
| 66 | |
| 67 | /// Use this to attach application specific data to your joints. |
| 68 | UserData interface{} |
| 69 | |
| 70 | /// The first attached body. |
| 71 | BodyA *B2Body |
| 72 | |
| 73 | /// The second attached body. |
| 74 | BodyB *B2Body |
| 75 | |
| 76 | /// Set this flag to true if the attached bodies should collide. |
| 77 | CollideConnected bool |
| 78 | } |
| 79 | |
| 80 | type B2JointDefInterface interface { |
| 81 | GetType() uint8 |
nothing calls this directly
no outgoing calls
no test coverage detected