Godot Version
4.3
Question
When my Character jumps on my Trampoline block Ill go up correctly. When I come back down I will land on the block as if it was any other block. Sometimes I will have a 2nd jump and it will be a fraction of the first one. Any idea of the best way to make a Trampoline in Godot 4 for a CharacterBody3D that’s consistent?
extends Area3D
var bounce_force = 33
func _on_body_entered(body):
if body.name == "Bob":
var bounce_velocity = Vector3(0, bounce_force, 0)
body.velocity = body.velocity + bounce_velocity
pass # Replace with function body.