Skip to content

Equation for the intersection of a ray and a sphere is backwards #1191

@trevordblack

Description

@trevordblack

It's written as
(P - C)

It should be
(C - P)

The math and everything is still correct but that (-1) gets squared out, but all of the ray intersections are from the center to the ray origin. Not the other way around

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions