blob: 62031b81cb490c192401501fffeb832ef521ad11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using Godot;
using System;
public partial class AutoCollisionShape : MeshInstance3D
{
public override void _Ready()
{
base._Ready();
var collisionShape = new CollisionShape3D();
collisionShape.Shape = new BoxShape3D();
collisionShape.Scale = Scale;
collisionShape.Transform = Transform;
AddChild(collisionShape);
}
}
|