Home | History | Annotate | Download | only in shapes

Lines Matching refs:shape

53  * to generate a more sophisticated shape.
65 * adds a child shape at the given local translation
66 * @param shape the child shape to add
67 * @param location the local location of the child shape
69 public void addChildShape(CollisionShape shape, Vector3f location) {
72 children.add(new ChildCollisionShape(location.clone(), new Matrix3f(), shape));
73 ((CompoundShape) cShape).addChildShape(transA, shape.getCShape());
77 * adds a child shape at the given local translation
78 * @param shape the child shape to add
79 * @param location the local location of the child shape
81 public void addChildShape(CollisionShape shape, Vector3f location, Matrix3f rotation) {
82 if(shape instanceof CompoundCollisionShape){
88 children.add(new ChildCollisionShape(location.clone(), rotation.clone(), shape));
89 ((CompoundShape) cShape).addChildShape(transA, shape.getCShape());
92 private void addChildShapeDirect(CollisionShape shape, Vector3f location, Matrix3f rotation) {
93 if(shape instanceof CompoundCollisionShape){
99 ((CompoundShape) cShape).addChildShape(transA, shape.getCShape());
103 * removes a child shape
104 * @param shape the child shape to remove
106 public void removeChildShape(CollisionShape shape) {
107 ((CompoundShape) cShape).removeChildShape(shape.getCShape());
110 if (childCollisionShape.shape == shape) {
146 addChildShapeDirect(child.shape, child.location, child.rotation);