Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prevVo = hit.collider.GetComponentInParent<Volume>();
- pvo = prevVo;
- //Get the frame from the volume
- frame = pvo.GetCurrentFrame();
- // Start iterating from the hit point along the ray until we hit a voxel
- Vector3 checkPoint = hit.point + (ray.direction);
- pvo.SetVoxelAtWorldPosition(checkPoint, new Voxel { State = VoxelState.Inactive });
Add Comment
Please, Sign In to add comment