internal override void createProduct(SimObjectBase instance, BulletScene scene) { btCompoundShape shape = new btCompoundShape(0.0f); ReshapeableRigidBody rigidBody = new ReshapeableRigidBody(this, scene, shape, instance.Translation, instance.Rotation); instance.addElement(rigidBody); }
public ReshapeableRigidBodySection(ReshapeableRigidBody parent, btCollisionShape collisionShape, Vector3 translation, Quaternion rotation) { this.parent = parent; this.collisionShape = collisionShape; parent.CompoundShape.addChildShape(collisionShape, translation, rotation); }