novaphy.VbdParticleTwistBoundaryCuda¶
CUDA particle boundary driver used by NovaPhy's VBD cloth twist demos. It owns CUDA buffers for selected particle indices, rotation axes, optional rotation centers, root vectors, and simulation time.
Constructor¶
boundary = novaphy.VbdParticleTwistBoundaryCuda(
state,
particle_indices,
rotation_axes,
rotation_centers=None,
)
state must hold CUDA particle buffers.
Methods and Properties¶
| Member | Description |
|---|---|
reset(state) |
Reset boundary state from a CUDA SimState. |
apply(state_0, state_1, angular_velocity, dt, end_time, advance_first=False) |
Write prescribed particle boundary positions. |
size |
Number of controlled particles. |
device |
Device descriptor. |