first
This commit is contained in:
14
actors/Enemies/Spider/rotationLock.gd
Normal file
14
actors/Enemies/Spider/rotationLock.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends Skeleton3D
|
||||
|
||||
var bones: Array[int] = [6,11,16,21,26,31,36,41]
|
||||
var boneRotations: Array[Quaternion]
|
||||
|
||||
func _ready() -> void:
|
||||
for bone in bones:
|
||||
boneRotations.push_back(get_bone_pose_rotation(bone))
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
var x = 0
|
||||
for bone in bones:
|
||||
set_bone_pose(bone, boneRotations[x])
|
||||
x += 1
|
||||
Reference in New Issue
Block a user