public ParticleEmitter CreateBoxEmitter(Box3D box, Vector3D direction, uint minPPS, uint maxPPS, Color minSC, Color maxSC, uint minLT, uint maxLT, int maxAngleDegrees) { return (ParticleEmitter) NativeElement.GetObject(Particle_CreateBoxEmitter(_raw, box.ToUnmanaged(), direction.ToUnmanaged(), minPPS, maxPPS, minSC.ToUnmanaged(), maxSC.ToUnmanaged(), minLT, maxLT, maxAngleDegrees), typeof(ParticleEmitter)); }
/// <summary> /// Determinates if the box intersects with an other box. /// </summary> /// <param name="other">Other box to check a intersection with.</param> /// <returns> Returns true if there is a intersection with the other box, /// otherwise false.</returns> public bool IntersectsWithBox(Box3D other) { return (MinEdge.X <= other.MaxEdge.X && MinEdge.Y <= other.MaxEdge.Y && MinEdge.Z <= other.MaxEdge.Z && MaxEdge.X >= other.MinEdge.X && MaxEdge.Y >= other.MinEdge.Y && MaxEdge.Z >= other.MinEdge.Z); }
/// <summary> /// Adds an other bounding box to the bounding box, causing it to grow bigger, /// if the box is outside of the box /// </summary> /// <param name="b"> Other bounding box to add into this box.</param> public void AddInternalBox(Box3D b) { AddInternalPoint(b.MaxEdge); AddInternalPoint(b.MinEdge); }
public void Draw3DBox(Box3D box, Color color) { VideoDriver_Draw3DBox(_raw, box.ToUnmanaged(), color.ToUnmanaged()); }