| 261 | |
| 262 | |
| 263 | void cProjectileEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) |
| 264 | { |
| 265 | // Set the position based on what face was hit: |
| 266 | SetPosition(a_HitPos); |
| 267 | SetSpeed(0, 0, 0); |
| 268 | |
| 269 | // DEBUG: |
| 270 | LOGD("Projectile %d: pos {%.02f, %.02f, %.02f}, hit solid block at face %d", |
| 271 | m_UniqueID, |
| 272 | a_HitPos.x, a_HitPos.y, a_HitPos.z, |
| 273 | a_HitFace |
| 274 | ); |
| 275 | |
| 276 | m_IsInGround = true; |
| 277 | } |
| 278 | |
| 279 | |
| 280 |
no test coverage detected