Skip to content

u/kodifies

In this archive from Jun 2016 to Nov 2026

68
posts
69
comments
7
media
640
score
1 saved before deletion

doesn't say its not possible, just no one is interested ?

coming from C and OpenDE things like joint angles are fairly fundamental - I guess I can make a scene with 2 nodes and calculate the angle from the nodes, but its a *real* shame Godot doesn't cover the fundamentals of physics use!

1 points

hard to read without proper indenting!

seems to be missing crucial parts, like what calls updating the path and how often, are you sure you're not creating the tween and then just recreating it next frame... ?

1 points

Can you tell us what it is you are actually trying to achieve ?

rather than funnelling down some narrow technical potential solution, giving more detail is more likely to lead to a better solution.

You may be better having a single body (for each "prop" / static entity / prefab call it what you will ! ) having multiple collision shapes, this way the body is the parent, save this as a scene and you can instantiate it anywhere you need the prop

additionally you can add exported properties with setter functions, this for example could allow you to assign a distinct material to the "prop" which then gets set to specific parts of the "prop"

1 points

typically it seemed to work at first

func _on_body_entered(body: Node) -> void:
    emit_signal("debug", str(vel), str(prev_vel))
    vel = max(vel, prev_vel)

with

func _process(delta: float) -> void:
    prev_vel = vel;
    vel = get_linear_velocity().length()

and finally this seems to be working - interesting how inconsistent the behavior is !

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.