Skip to content

[Question] Particle reset #1120

Answered by robegi
NAMHAUK asked this question in Q&A
Oct 2, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @NAMHAUK,

I found a way to reset the particles on my script, which however works on the Direct RL workflow. I saw you are using the Manager based one, I don't know if it does apply there too. If you do not find a way to make it work I suggest you look up the Direct workflow which I found much simpler for custom assets such as liquids, but that's your choice.

Regarding the reset, I used the two following functions to get the particles' position:

from pxr import UsdGeom, Gf

 def get_particles_position(self)->tuple[Gf.Vec3f, Gf.Vec3f]:
        # Gets particles' positions and velocities 
        particles = UsdGeom.Points(self.stage.GetPrimAtPath(self.default_prim_path.AppendPath("envs/en…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NAMHAUK
Comment options

Answer selected by NAMHAUK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1115 on October 02, 2024 19:04.