Fixture Class |
Namespace: Internal.tainicom.Aether.Physics2D.Dynamics
public class Fixture
The Fixture type exposes the following members.
| Name | Description | |
|---|---|---|
| Body |
Get the parent body of this fixture. This is null if the fixture is not attached.
| |
| CollidesWith |
Defaults to Category.All
The collision mask bits. This states the categories that this
fixture would accept for collision.
| |
| CollisionCategories |
The collision categories this fixture is a part of.
Defaults to Category.Cat1
| |
| CollisionGroup |
Defaults to 0
Collision groups allow a certain group of objects to never collide (negative)
or always collide (positive). Zero means no collision group. Non-zero group
filtering always wins against the mask bits.
| |
| Friction |
Set the coefficient of friction. This will _not_ change the friction of
existing contacts.
| |
| IsSensor |
Gets or sets a value indicating whether this fixture is a sensor.
| |
| Proxies | ||
| ProxyCount | ||
| Restitution |
Set the coefficient of restitution. This will not change the restitution of
existing contacts.
| |
| Shape |
Get the child Shape.
|
| Name | Description | |
|---|---|---|
| CloneOnto |
Clones the fixture onto the specified body.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetAABB |
Get the fixture's AABB. This AABB may be enlarge and/or stale.
If you need a more accurate AABB, compute it using the Shape and
the body transform.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| RayCast |
Cast a ray against this Shape.
| |
| TestPoint |
Test a point for containment in this fixture.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AfterCollision |
Fires after two shapes has collided and are solved. This gives you a chance to get the impact force.
| |
| BeforeCollision |
Fires when two fixtures are close to each other.
Due to how the broadphase works, this can be quite inaccurate as shapes are approximated using AABBs.
| |
| OnCollision |
Fires when two shapes collide and a contact is created between them.
Note that the first fixture argument is always the fixture that the delegate is subscribed to.
| |
| OnSeparation |
Fires when two shapes separate and a contact is removed between them.
Note: This can in some cases be called multiple times, as a fixture can have multiple contacts.
Note The first fixture argument is always the fixture that the delegate is subscribed to.
| |
| Tag |
Set the user data. Use this to store your application specific data.
|
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
| PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |