public ObiTriangleMeshContainer() { handles = new Dictionary <Mesh, ObiTriangleMeshHandle>(); headers = new ObiNativeTriangleMeshHeaderList(); bihNodes = new ObiNativeBIHNodeList(); triangles = new ObiNativeTriangleList(); vertices = new ObiNativeVector3List(); }
public void SetBendTwistConstraints(ObiNativeIntList orientationIndices, ObiNativeQuaternionList restDarboux, ObiNativeVector3List stiffnesses, ObiNativeFloatList lambdas, int count) { this.orientationIndices = orientationIndices.AsNativeArray <int>(); this.restDarboux = restDarboux.AsNativeArray <quaternion>(); this.stiffnesses = stiffnesses.AsNativeArray <float3>(); this.lambdas = lambdas.AsNativeArray <float>(); }
public void SetBendTwistConstraints(ObiNativeIntList orientationIndices, ObiNativeQuaternionList restOrientations, ObiNativeVector3List stiffnesses, ObiNativeFloatList lambdas, int count) { Oni.SetBendTwistConstraints(oniBatch, orientationIndices.GetIntPtr(), restOrientations.GetIntPtr(), stiffnesses.GetIntPtr(), lambdas.GetIntPtr(), count); }
public void SetTriangleMeshData(ObiNativeTriangleMeshHeaderList headers, ObiNativeBIHNodeList nodes, ObiNativeTriangleList triangles, ObiNativeVector3List vertices) { Oni.SetTriangleMeshData(headers.GetIntPtr(), nodes.GetIntPtr(), triangles.GetIntPtr(), vertices.GetIntPtr()); }
public void SetStretchShearConstraints(ObiNativeIntList particleIndices, ObiNativeIntList orientationIndices, ObiNativeFloatList restLengths, ObiNativeQuaternionList restOrientations, ObiNativeVector3List stiffnesses, ObiNativeFloatList lambdas, int count) { this.particleIndices = particleIndices.AsNativeArray <int>(); this.orientationIndices = orientationIndices.AsNativeArray <int>(); this.restLengths = restLengths.AsNativeArray <float>(); this.restOrientations = restOrientations.AsNativeArray <quaternion>(); this.stiffnesses = stiffnesses.AsNativeArray <float3>(); this.lambdas = lambdas.AsNativeArray <float>(); m_ConstraintCount = count; }
public void SetTriangleMeshData(ObiNativeTriangleMeshHeaderList headers, ObiNativeBIHNodeList nodes, ObiNativeTriangleList triangles, ObiNativeVector3List vertices) { }
public void SetStretchShearConstraints(ObiNativeIntList particleIndices, ObiNativeIntList orientationIndices, ObiNativeFloatList restLengths, ObiNativeQuaternionList restOrientations, ObiNativeVector3List stiffnesses, ObiNativeFloatList lambdas, int count) { Oni.SetStretchShearConstraints(oniBatch, particleIndices.GetIntPtr(), orientationIndices.GetIntPtr(), restLengths.GetIntPtr(), restOrientations.GetIntPtr(), stiffnesses.GetIntPtr(), lambdas.GetIntPtr(), count); }