diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-02-12 12:14:25 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-02-12 12:25:58 -0700 |
commit | 6d0898bf4c6d3f1efc4b341ec045f2b44b70a92c (patch) | |
tree | b5e5a86c03c2ba28a58c855d0fafbc7fd7cc4f3d /editor/scene_tree_dock.cpp | |
parent | 68624f32b0b88a6fbcc413bfccbdad4460431e8b (diff) |
Revised cylinder contact point generation
Cylinder contact points generation is adjusted to make it more stable
when standing on triangle meshes.
Point-Circle:
Switched to simpler plane projection as it's done for Point-Face contact
points. It solves some cases where discrepancies between the two points
caused the cylinder to jump.
Edge-Circle:
Same as before, the case for edge has just been moved from Face-Circle
to a specific method.
Face-Circle:
The previous method was clipping edges against the circle, and then
tried to add contact points when there wasn't enough support and failed
in some cases.
Now using a different algorithm which adds proper contact points around
the circle more consistently.
First, by clipping edges against circle segments using Face-Face
algorithm.
Second, by clipping edges against the circle plane.
Diffstat (limited to 'editor/scene_tree_dock.cpp')
0 files changed, 0 insertions, 0 deletions