public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray <float> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges) { InternalShape = new BulletSharp.HeightfieldShape(heightStickWidth, heightStickLength, dynamicFieldData.Pointer, heightScale, minHeight, maxHeight, 1, (int)BulletPhyScalarType.PhyFloat, flipQuadEdges) { LocalScaling = Vector3.One }; FloatArray = dynamicFieldData; }
public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray<float> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges) { InternalShape = new BulletSharp.HeightfieldShape(heightStickWidth, heightStickLength, dynamicFieldData.Pointer, heightScale, minHeight, maxHeight, 1, (int)BulletPhyScalarType.PhyFloat, flipQuadEdges) { LocalScaling = Vector3.One }; FloatArray = dynamicFieldData; }