Skip to content

How to set particles' positions relative to the object in a behavior1k task? #1035

Answered by ChengshuLi
shengyin1224 asked this question in Q&A
Discussion options

You must be logged in to vote

@shengyin1224 To add to Hang's comments, Filled and Covered states do spawn particles in relationship to other rigid objects.

You can also call the low level APIs to directly spawn particles. The following code will spawn two water particles at the specified positions.

 water_system = env.scene.get_system("water")
 water_system.generate_particles(positions=torch.tensor([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]))

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
@shengyin1224
Comment options

Answer selected by shengyin1224
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