ball.spin
Syntax
Vector Access
- v = ball.spin(b<,i>)
- ball.spin(b<,i>) = v
Get/set the ball angular velocity.
Returns: v - ball angular velocity vector or component
Accepts: v - ball angular velocity vector or component
Arguments: b - ball pointer
i - Optional vector component that ranges from {3 to 3 in 2D; 1 to 3 in 3D}.
Component Access
- f = ball.spin.x(b) (3D ONLY)
- ball.spin.x(b) = f (3D ONLY)
Get/set the x-component of the ball angular velocity.
Returns: f - x-component of the ball angular velocity vector Accepts: f - x-component of the ball angular velocity vector Arguments: b - ball pointer
Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |