示例#1
0
        public IEnumerable <PhysicsActor> Overlap(uint filter, PhysicsShape shape, Vector3 position, Quaternion rotation)
        {
            int count;
            var result = PhysicsApi_Overlap(filter, ObjectId, shape.ObjectId, position, rotation, out count);

            if (result != null)
            {
                var array = new int[count];
                Marshal.Copy(result, array, 0, count);
                for (var i = 0; i < count; i++)
                {
                    var oid = (uint)array[i];
                    yield return(Get <PhysicsActor>(oid));
                }
            }
        }
示例#2
0
 public PhysicsActor CreateDynamicCollision(PhysicsShape shape, Vector3 position, Quaternion rotation)
 {
     return(null);
 }
示例#3
0
 public PhysicsTrigger CreateTrigger(PhysicsShape shape, Vector3 position, Quaternion rotation)
 {
     return(null);
 }
示例#4
0
 public void DestoryShape(PhysicsShape shape)
 {
     PhysicsApi_DestoryShape(ObjectId, shape.ObjectId);
 }