Beispiel #1
0
 public PxSphereCollider(PhysicsScene scene, SphereColliderData data, bool isDynamic, object userData = null) : base(scene, isDynamic, userData)
 {
     NLog.Log.Assert(data.IsValid);
     this.ColliderData = data;
     this.Layer        = data.layer;
     this.ptr          = scene.AddSphereCollider(this);
 }
 public PxSphereCollider(PhysicsScene scene, SphereColliderData data, bool isDynamic, string name, object userData) :
     this(scene, data, isDynamic, userData)
 {
     this.Name = name;
 }
Beispiel #3
0
 public static extern IntPtr AddSphereCollider(IntPtr scene, SphereColliderData sphere, bool isDynamic);