Skip to content

Instantly share code, notes, and snippets.

@rtroe
Last active September 20, 2016 13:43
Show Gist options
  • Save rtroe/cb3da8add1463452d31bbb4c86f81549 to your computer and use it in GitHub Desktop.
Save rtroe/cb3da8add1463452d31bbb4c86f81549 to your computer and use it in GitHub Desktop.
// Reset the Bounding Sphere's Center Position
BoundingShape.Center = Vector3.Transform(ModelCenter, World);
// Now Check if this entity is even in view of the camera
IsInCameraViewFrustum = Camera.IsInViewFrustrum(BoundingShape);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment