Ejemplo n.º 1
0
 protected PhysicsLogic(World world, PhysicsLogicType type)
 {
     _type      = type;
     this.world = world;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Restore the controller. The controller affects this body.
 /// </summary>
 /// <param name="type">The logic type.</param>
 public void RestorePhysicsLogic(PhysicsLogicType type)
 {
     controllerIgnores &= ~type;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Determines whether this body ignores the the specified controller.
 /// </summary>
 /// <param name="type">The logic type.</param>
 /// <returns>
 ///     <c>true</c> if the body has the specified flag; otherwise, <c>false</c>.
 /// </returns>
 public bool IsPhysicsLogicIgnored(PhysicsLogicType type)
 {
     return((controllerIgnores & type) == type);
 }
 public PhysicsLogic(World world, PhysicsLogicType type)
 {
     FilterData = new FilterPhysicsLogicData(type);
     World      = world;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Ignores the controller. The controller has no effect on this body.
 /// </summary>
 /// <param name="type">The logic type.</param>
 public void IgnorePhysicsLogic(PhysicsLogicType type)
 {
     controllerIgnores |= type;
 }
Ejemplo n.º 6
0
 public PhysicsLogic(World world, PhysicsLogicType type)
 {
     _type = type;
     World = world;
 }
 public FilterPhysicsLogicData(PhysicsLogicType type)
 {
     _type = type;
 }
 /// <summary>
 /// Ignores the controller. The controller has no effect on this body.
 /// </summary>
 /// <param name="type">The logic type.</param>
 public void IgnorePhysicsLogic(PhysicsLogicType type)
 {
     ControllerIgnores |= type;
 }
Ejemplo n.º 9
0
 /// <summary>Determines whether this body ignores the specified controller.</summary>
 /// <param name="type">The logic type.</param>
 /// <returns><c>true</c> if the body has the specified flag; otherwise, <c>false</c>.</returns>
 public bool IsPhysicsLogicIgnored(PhysicsLogicType type) => (ControllerIgnores & type) == type;
 public FilterPhysicsLogicData(PhysicsLogicType type)
 {
     _type = type;
 }
 public PhysicsLogic(World world, PhysicsLogicType type)
 {
     FilterData = new FilterPhysicsLogicData(type);
     World = world;
 }
 /// <summary>
 /// Restore the controller. The controller affects this body.
 /// </summary>
 /// <param name="type">The logic type.</param>
 public void RestorePhysicsLogic(PhysicsLogicType type)
 {
     ControllerIgnores &= ~type;
 }
 /// <summary>
 /// Determines whether this body ignores the the specified controller.
 /// </summary>
 /// <param name="type">The logic type.</param>
 /// <returns>
 /// 	<c>true</c> if the body has the specified flag; otherwise, <c>false</c>.
 /// </returns>
 public bool IsPhysicsLogicIgnored(PhysicsLogicType type)
 {
     return (ControllerIgnores & type) == type;
 }
Ejemplo n.º 14
0
 public PhysicsLogic(PhysicsWorld world, PhysicsLogicType type)
 {
     _type = type;
     World = world;
 }
Ejemplo n.º 15
0
 public PhysicsLogic(World world, PhysicsLogicType type)
 {
     this._type = type;
     this.World = world;
 }
Ejemplo n.º 16
0
		public PhysicsLogic( World world, PhysicsLogicType type )
		{
			_type = type;
			this.world = world;
		}