Guest User

Untitled

a guest
Jul 5th, 2019
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. prevVo = hit.collider.GetComponentInParent<Volume>();
  2. pvo = prevVo;
  3. //Get the frame from the volume
  4. frame = pvo.GetCurrentFrame();
  5. // Start iterating from the hit point along the ray until we hit a voxel
  6. Vector3 checkPoint = hit.point + (ray.direction);
  7. pvo.SetVoxelAtWorldPosition(checkPoint, new Voxel { State = VoxelState.Inactive });
Add Comment
Please, Sign In to add comment