Skip to content

Instantly share code, notes, and snippets.

@stephan-vandenheuvel
Created January 14, 2014 02:18
Show Gist options
  • Save stephan-vandenheuvel/8411933 to your computer and use it in GitHub Desktop.
Save stephan-vandenheuvel/8411933 to your computer and use it in GitHub Desktop.
HandleCollisionEvent(RigidBody body) {
Entity* ePtr = body->GetEntity();
ProjectileComponent* pcPtr = ePtr->GetComponent<ProjectileComponent>();
if (pcPtr != null) {
//we have a Projectile Component and we can use it here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment