Skip to content

Instantly share code, notes, and snippets.

@wrr
Created February 19, 2021 12:41
Show Gist options
  • Save wrr/5d110c191a8f0a5a962a20f006e4095d to your computer and use it in GitHub Desktop.
Save wrr/5d110c191a8f0a5a962a20f006e4095d to your computer and use it in GitHub Desktop.
Configure how close to objects a camera can move within a Shapespark scene.
<script>
// The numbers below are in meters.
WALK.CLICK_MOVE_MIN_DISTANCE_TO_OBSTACLE = 0.7;
WALK.KEY_MOVE_MIN_DISTANCE_TO_OBSTACLE = 0.5;
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment