| 122 | } |
| 123 | |
| 124 | type B2Body struct { |
| 125 | M_type uint8 |
| 126 | |
| 127 | M_flags uint32 |
| 128 | |
| 129 | M_islandIndex int |
| 130 | |
| 131 | M_xf B2Transform // the body origin transform |
| 132 | M_sweep B2Sweep // the swept motion for CCD |
| 133 | |
| 134 | M_linearVelocity B2Vec2 |
| 135 | M_angularVelocity float64 |
| 136 | |
| 137 | M_force B2Vec2 |
| 138 | M_torque float64 |
| 139 | |
| 140 | M_world *B2World |
| 141 | M_prev *B2Body |
| 142 | M_next *B2Body |
| 143 | |
| 144 | M_fixtureList *B2Fixture // linked list |
| 145 | M_fixtureCount int |
| 146 | |
| 147 | M_jointList *B2JointEdge // linked list |
| 148 | M_contactList *B2ContactEdge // linked list |
| 149 | |
| 150 | M_mass, M_invMass float64 |
| 151 | |
| 152 | // Rotational inertia about the center of mass. |
| 153 | M_I, M_invI float64 |
| 154 | |
| 155 | M_linearDamping float64 |
| 156 | M_angularDamping float64 |
| 157 | M_gravityScale float64 |
| 158 | |
| 159 | M_sleepTime float64 |
| 160 | |
| 161 | M_userData interface{} |
| 162 | } |
| 163 | |
| 164 | func (body B2Body) GetType() uint8 { |
| 165 | return body.M_type |
nothing calls this directly
no outgoing calls
no test coverage detected