public PxCapsuleCollider(PhysicsScene scene, CapsuleColliderData data, bool isDynamic, object userData = null) : base(scene, isDynamic, userData)
        {
            NLog.Log.Assert(data.IsValid);
            this.ColliderData = data;

            this.position = data.position;
            this.rotation = data.rotation;
            this.ptr      = scene.AddCapsuleCollider(this);
        }
Esempio n. 2
0
 public PxCapsuleCollider(PhysicsScene scene, CapsuleColliderData data, bool isDynamic, string name, object userData = null) :
     this(scene, data, isDynamic, userData)
 {
     this.Name = name;
 }
Esempio n. 3
0
 public static extern IntPtr AddCapsuleCollider(IntPtr scene, CapsuleColliderData capsule, bool isDynamic);