Class ContactTestBehavior
Sets the collision events.
Inheritance
ContactTestBehavior
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class ContactTestBehavior : Behavior, IDependencyObject
Fields
PhysicBody
The 3D transform.
Declaration
[BindComponent(false, true, BindComponentSource.Owner, null, true)]
public PhysicBody3D PhysicBody
Field Value
Type | Description |
---|---|
PhysicBody3D |
collider
The collider.
Declaration
[BindComponent(false, true, BindComponentSource.Owner, null, true)]
public Collider3D collider
Field Value
Type | Description |
---|---|
Collider3D |
Properties
Clear
Gets or sets a value indicating whether to clear contacts.
Declaration
public bool Clear { get; set; }
Property Value
Type | Description |
---|---|
bool |
PairEntity
Gets or sets the pair entity.
Declaration
public Entity PairEntity { get; set; }
Property Value
Type | Description |
---|---|
Entity |
Methods
Dispose()
Disposes elements.
Declaration
public void Dispose()
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if everything is OK. |
Overrides
OnLoaded()
Invoked when the object is loaded.
Declaration
protected override void OnLoaded()
Overrides
Update(TimeSpan)
Update method.
Declaration
protected override void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The game time. |