BeRo1985 / kraft

Kraft Physics Engine is an open source Object Pascal physics engine library that can be used in 3D games.
107 stars 21 forks source link

Add RayCastable property for TKraftShape #19

Closed gecko0307 closed 6 years ago

gecko0307 commented 6 years ago

I find collision groups not always convenient to hide shapes when doing a ray cast. For example, when casting a ray from a character controller, I don't want to touch collision groups at all, only hide character's own geometry. This is possible with RayCastable property for TKraftShape, which I've added in in this PR. It would be a very nice thing to have.

BeRo1985 commented 6 years ago

See https://github.com/BeRo1985/kraft/commit/6de78311461fb474686a64f178ac75737b40e1ac

gecko0307 commented 6 years ago

Cool, thank you!