taichi_houdini
taichi_houdini copied to clipboard
Moving collider
Support collider with moving velocity. If we would like to support scenario like below
Ti-element end:
Modify the kernel in the add_XXX_collider
functions, the key is to apply the modification of each surface type to the relative velocity between the particles and the collider, then transfer to absolute particle velocity.
Houdini end:
- Modify the interface parameters: Add a toggle i.e.
moving
; add a vector of float, which should automatically disable whenmoving
is not toggled. - Add an entry of velocity for the dictionary of each surface type: if moving not toggled, v should be zero, else, read the value from Houdini. Refer to the
read_analytical_collisions
function in Libs/python/utils.py