Is set_dofs_velocity used to set the base velocity or the initial velocity? #1202
Replies: 9 comments 9 replies
-
Can you provide a minimal reproducible example ? |
Beta Was this translation helpful? Give feedback.
-
Are you aware that set_dofs_velocity only overwrites the current velocity ? This means that at the end of the next step the velocity will not be zero anymore, and the object will keep accelerating under gravity effect. It will never be still even if you overwrite it at every timestep unless the acceleration is truely zero. There is no way to prevent this except fixing the object. |
Beta Was this translation helpful? Give feedback.
-
Do you mean that the velocity at each timestep will always be the one set by set_dofs_velocity and won't change?
…------------------ 原始邮件 ------------------
发件人: "Genesis-Embodied-AI/Genesis" ***@***.***>;
发送时间: 2025年5月27日(星期二) 下午2:23
***@***.***>;
***@***.******@***.***>;
主题: Re: [Genesis-Embodied-AI/Genesis] Is set_dofs_velocity used to set the base velocity or the initial velocity? (Discussion #1202)
Are you aware that set_dofs_velocity only overwrites the current velocity ? This means that at the end of the next step the velocity will not be zero anymore, and the object will keep accelerating under gravity effect. It will never be still even if you overwrite it at every timestep unless the acceleration is truely zero. There is no way to prevent this except fixing the object.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, I need that. I need to simulate the object eventually coming to rest. Thank you!
…------------------ 原始邮件 ------------------
发件人: "Genesis-Embodied-AI/Genesis" ***@***.***>;
发送时间: 2025年5月27日(星期二) 下午2:24
***@***.***>;
***@***.******@***.***>;
主题: Re: [Genesis-Embodied-AI/Genesis] Is set_dofs_velocity used to set the base velocity or the initial velocity? (Discussion #1202)
We could add an option to fix object wrt world dynamically if necessary.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Oh, I see what you mean now. But what I'm asking is: if I set the initial velocity in the current timestep, and also set gravity to zero with no other acceleration, then the object should move at a constant velocity, right?
…------------------ 原始邮件 ------------------
发件人: "Genesis-Embodied-AI/Genesis" ***@***.***>;
发送时间: 2025年5月27日(星期二) 下午2:53
***@***.***>;
***@***.******@***.***>;
主题: Re: [Genesis-Embodied-AI/Genesis] Is set_dofs_velocity used to set the base velocity or the initial velocity? (Discussion #1202)
No I mean the complete opposite. The velocity will never be the one set by set_dofs_velocity (except right after calling it) and will always keep changing. The object will keep moving even if you force set_dofs_velocity after every single step.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the reminder, I understand. I'm not trying to do a real physical simulation — I just need to give the object an initial velocity, throw it out, and let it fall to the ground to create an animation video.
…------------------ 原始邮件 ------------------
发件人: "Genesis-Embodied-AI/Genesis" ***@***.***>;
发送时间: 2025年5月27日(星期二) 下午2:54
***@***.***>;
***@***.******@***.***>;
主题: Re: [Genesis-Embodied-AI/Genesis] Is set_dofs_velocity used to set the base velocity or the initial velocity? (Discussion #1202)
Are you aware that if you set the velocity, then you are basically not simulating anything for this object, just doing animation ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I thought that in the Genesis environment, giving an object an initial velocity would be enough to easily generate a video of the object falling, without having to calculate the object's position frame by frame myself. But now I understand what you mean — as long as the object is moving, physical simulation is needed to solve its motion. Thank you for your patient response.
…------------------ 原始邮件 ------------------
发件人: "Genesis-Embodied-AI/Genesis" ***@***.***>;
发送时间: 2025年5月27日(星期二) 下午3:01
***@***.***>;
***@***.******@***.***>;
主题: Re: [Genesis-Embodied-AI/Genesis] Is set_dofs_velocity used to set the base velocity or the initial velocity? (Discussion #1202)
What you are describing IS physics simulation, unless you script the complete motion trajectory yourself!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
So at this point you are telling me that you are not observing the object failing and stopping when hitting the ground ? |
Beta Was this translation helpful? Give feedback.
-
Yes, that's exactly what I'm talking about. Do you have any suggestions?
4o
…------------------ 原始邮件 ------------------
发件人: "Genesis-Embodied-AI/Genesis" ***@***.***>;
发送时间: 2025年5月27日(星期二) 下午3:11
***@***.***>;
***@***.******@***.***>;
主题: Re: [Genesis-Embodied-AI/Genesis] Is set_dofs_velocity used to set the base velocity or the initial velocity? (Discussion #1202)
So at this point you are telling me that you are not observing the object failing and stopping when hitting the ground ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that after using this function to set the velocity, the object falls and then bounces back, continuing to move in the opposite direction without stopping.
Beta Was this translation helpful? Give feedback.
All reactions