added rigidbody support