Project: threejs
Task (challenging): Create fence.js imported by index.js 1: Create a group named fences, and set this group.name to fences. 2: Generate fence, and it is a 1 * 1 * 1 darkgreen cuboid, and then add these fences in fences group. Repeat the above steps to add fences around the floor. 3: The snake cannot be moved on the fences by the user, so collision detection is required