Skip to content

Instantly share code, notes, and snippets.

@GoodNovember
GoodNovember / bounding_box.rs
Last active April 7, 2023 03:54
A Rust Octree implementation that uses Bevy's math code.
use bevy::math::{ Vec3 };
#[derive(Debug, Clone, Copy, PartialEq)]
/// an axist aligned bounding box in 3d space
pub struct BoundingBox {
pub center: Vec3,
pub half_extents: Vec3,
}
impl BoundingBox {
using UnityEngine;
using Unity.Entities;
using Unity.Collections;
using Unity.Transforms;
using Unity.Rendering;
public class ChunkIterationBootstrap : MonoBehaviour
{
[SerializeField] RenderMesh meshInstanceRenderer;
@skoji
skoji / remove-slack-settings.sh
Created November 2, 2015 03:34
remove Slack settings (OS X)
rm -rf ~/Library/Application\ Support/Slack/
rm -rf ~/Library/Containers/com.tinyspeck.slackmacgap/
rm -rf ~/Library/Preferences/com.tinyspeck.slackmacgap.plist
rm -rf ~/Library/Saved\ Application\ State/com.tinyspeck.slackmacgap.savedState
rm ~/Library/Safari/LocalStorage/*slack*