question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Heightfields with negative values will fire face normal errors

See original GitHub issue

To reproduce, change all heightfield data points in the heightfield.html demo to -5. You will see 1,000+ errors thrown from ConvexPolyhedron when computing convex triangle pillars.

This was also an issue from 2014: https://github.com/schteppe/cannon.js/issues/149

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rogerscgcommented, Jul 25, 2020

I found the issue, which stems from the convex triangle pillar being upside down when the heightfield has a negative value. Will send a PR in the next few minutes.

0reactions
codynovacommented, Jul 25, 2020

Absolutely, we welcome any further contributions 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

HeightField geometry node - SideFX
The height volume is a 2D grid of values representing the distance of the terrain at each point on the map from the...
Read more >
fitting a distribution to skewed data with negative values
One solution to this problem would be to transform my data by adding a constant so that all negative values become positive, and...
Read more >
Mesh Distance Fields | Unreal Engine 4.27 Documentation
The Mesh Distance Field quality will be best for levels that are built out of meshes with similar size, as large meshes tend...
Read more >
HoudiniDops - cgwiki
Remember that a sim is all about calculating based on the results of the ... Give it a high velocity on its normal,...
Read more >
Trimble Survey Controller User Guide - NGS
messages, and common error and warning messages. ... Enter a negative value if magnetic north is west of true north. Enter a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found