protected PhysicsLogic(World world, PhysicsLogicType type) { _type = type; this.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); }
public PhysicsLogic(World world, PhysicsLogicType type) { FilterData = new FilterPhysicsLogicData(type); World = world; }
/// <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; }
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; }
/// <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;
/// <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; }
public PhysicsLogic(PhysicsWorld world, PhysicsLogicType type) { _type = type; World = world; }
public PhysicsLogic(World world, PhysicsLogicType type) { this._type = type; this.World = world; }
public PhysicsLogic( World world, PhysicsLogicType type ) { _type = type; this.world = world; }