private void Initialize() { // Allocate all lists: if (implementations == null) { implementations = new List <IColliderWorldImpl>(); } if (colliderHandles == null) { colliderHandles = new List <ObiColliderHandle>(); } if (colliderShapes == null) { colliderShapes = new ObiNativeColliderShapeList(); } if (colliderAabbs == null) { colliderAabbs = new ObiNativeAabbList(); } if (colliderTransforms == null) { colliderTransforms = new ObiNativeAffineTransformList(); } if (materialHandles == null) { materialHandles = new List <ObiCollisionMaterialHandle>(); } if (collisionMaterials == null) { collisionMaterials = new ObiNativeCollisionMaterialList(); } if (rigidbodyHandles == null) { rigidbodyHandles = new List <ObiRigidbodyHandle>(); } if (rigidbodies == null) { rigidbodies = new ObiNativeRigidbodyList(); } if (triangleMeshContainer == null) { triangleMeshContainer = new ObiTriangleMeshContainer(); } if (edgeMeshContainer == null) { edgeMeshContainer = new ObiEdgeMeshContainer(); } if (distanceFieldContainer == null) { distanceFieldContainer = new ObiDistanceFieldContainer(); } if (heightFieldContainer == null) { heightFieldContainer = new ObiHeightFieldContainer(); } }
public void SetCollisionMaterials(ObiNativeCollisionMaterialList materials) { Oni.SetCollisionMaterials(materials.GetIntPtr()); }
public void SetCollisionMaterials(ObiNativeCollisionMaterialList materials) { }