It looks like you're new here. If you want to get involved, click one of these buttons!
Let's start this community and share some snippets of codes and graphs. I wanted to start here with a very (very!) basic PolygonMesh collision deformer.
This is using the vertex' normal to search for an odd number of backface hits using SpatialQuery.
See attached canvas graph
The collision code is in the
A neat feature of the line intersection method on the SpatialQuery is that it returns the hits in sorted manner from the start point to the end point. This is something the code is also relying on by simply iterating the hits until we find the first front-faced hit and ignore the rest (since those would be further front-faced hit positions.)
Let me know if you like it. If you use it, share back!
We'd all love to see what you build with it!
©Copyright 2017 Fabric Software Inc. All rights reserved. | Privacy