filmov
tv
Jiggle Physics in Godot
Показать описание
Here’s how you can add secondary animation movement dynamically to your characters in your Godot game! Jiggle Physics can be used for a wide variety of appendages such as hair and clothing as well.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
To get more personalized help from me, join as a channel member:
Check out the written guide on my website for further information and future updates!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Video Chapters:
Intro: 00:00
How do Jiggle Physics Work?: 00:29
Animating Jiggles Directly into Your Animations: 02:26
Softbody or Rigidbody Simulations: 06:03
Using Rigged Bones for Jiggle Physics: 07:04
If You Don’t Want Too Many Jigglebones in Your Scene: 11:07
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Addons used:
The Code Used:
###
###
extends Skeleton3D
@export var jigglebone_config: Array[JiggleboneConfig]
func _ready():
for i in get_bone_count():
var bone_name = get_bone_name(i)
for cfg in jigglebone_config:
var jigglebone = JIGGLEBONE_SCENE.new()
add_child(jigglebone)
###
###
class_name JiggleboneConfig
extends Resource
enum Axis {
X_Plus, Y_Plus, Z_Plus, X_Minus, Y_Minus, Z_Minus
}
@export var name_pattern: String
@export var stiffness: float
@export var damping: float
@export var forward_axis: Axis = Axis.Z_Minus
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Video Sources:
#godot #blender #gamedev #gamedevelopment #3dgames
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
To get more personalized help from me, join as a channel member:
Check out the written guide on my website for further information and future updates!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Video Chapters:
Intro: 00:00
How do Jiggle Physics Work?: 00:29
Animating Jiggles Directly into Your Animations: 02:26
Softbody or Rigidbody Simulations: 06:03
Using Rigged Bones for Jiggle Physics: 07:04
If You Don’t Want Too Many Jigglebones in Your Scene: 11:07
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Addons used:
The Code Used:
###
###
extends Skeleton3D
@export var jigglebone_config: Array[JiggleboneConfig]
func _ready():
for i in get_bone_count():
var bone_name = get_bone_name(i)
for cfg in jigglebone_config:
var jigglebone = JIGGLEBONE_SCENE.new()
add_child(jigglebone)
###
###
class_name JiggleboneConfig
extends Resource
enum Axis {
X_Plus, Y_Plus, Z_Plus, X_Minus, Y_Minus, Z_Minus
}
@export var name_pattern: String
@export var stiffness: float
@export var damping: float
@export var forward_axis: Axis = Axis.Z_Minus
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Video Sources:
#godot #blender #gamedev #gamedevelopment #3dgames
Комментарии