Skip to content

Instantly share code, notes, and snippets.

@Lance5057
Lance5057 / BuildController.cs
Created June 5, 2024 02:50
Simple Runtime Heightmap editor for TerraBrush
using Godot;
using Godot.Collections;
using TerraBrush;
public partial class BuildController : Node3D
{
[Export]
public Camera3D camera;
[Export]
public Node3D pointer;
if (smoothRadius > 0)
{
for (int i = 0; i < smoothRepeat; i++)
{
for (int x = 0; x < hmWidth; x++)
for (int z = 0; z < hmHeight; z++)
{
Ray ray = new Ray(new Vector3(x + terrain.transform.position.x, 1000, z + terrain.transform.position.z), Vector3.down);
RaycastHit[] hit = Physics.RaycastAll(ray);
@Lance5057
Lance5057 / ArchimedesScrew.java
Created August 27, 2016 20:14
ArchimedesScrew Model
package IHaveNoIdea;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
/**
* ArchimedesScrew - Lance5057
* Created using Tabula 4.1.1
*/