BulletSim: massive refactor of shape classes. Removed shape specific code from BSShapeCollection. Using BSShape* classes to hold references to shape. Simplified shape dependency callbacks. Remove 'PreferredShape' methods and have each class specify shape type. Disable compound shape linkset for a later commit that will simplify linkset implementation.

This commit is contained in:
Robert Adams
2013-04-28 14:44:21 -07:00
parent 890cb6a293
commit e5582939fd
20 changed files with 293 additions and 1053 deletions

View File

@@ -104,11 +104,11 @@ public class BulletShape
{
public BulletShape()
{
type = BSPhysicsShapeType.SHAPE_UNKNOWN;
shapeType = BSPhysicsShapeType.SHAPE_UNKNOWN;
shapeKey = (System.UInt64)FixedShapeKey.KEY_NONE;
isNativeShape = false;
}
public BSPhysicsShapeType type;
public BSPhysicsShapeType shapeType;
public System.UInt64 shapeKey;
public bool isNativeShape;
@@ -133,7 +133,7 @@ public class BulletShape
buff.Append("<p=");
buff.Append(AddrString);
buff.Append(",s=");
buff.Append(type.ToString());
buff.Append(shapeType.ToString());
buff.Append(",k=");
buff.Append(shapeKey.ToString("X"));
buff.Append(",n=");