Large update with mostly rewritten character subsystem

This commit is contained in:
Segey Lapin
2019-10-17 08:48:21 +03:00
parent 6e18c898b4
commit 0945ef76ee
224 changed files with 77854 additions and 13113 deletions

View File

@@ -0,0 +1,12 @@
extends Node
func _ready():
var dnatool : = DNATool.new()
var pt : = Vector3(0.25, 0.25, 3)
var p1 : = Vector3(0, 0, 0)
var p2 : = Vector3(1, 0, 0)
var p3 : = Vector3(0, 1, 0)
var bc = dnatool.get_baricentric(pt, p1, p2, p3)
print(bc)
print([1.0 - bc.x, 1.0 - bc.y, 1.0 - bc.z])
print(p1 * bc.x + p2 * bc.y + p3 * bc.z)