Struct DOTSDynamicBoneCollider_BufferElement
This is a collider for the DOTSDynamicBoneSystem
Namespace: DOTSDynamicBone.Collision
Assembly: cs.temp.dll.dll
Syntax
public struct DOTSDynamicBoneCollider_BufferElement : IDOTSDynamicBoneCollider, IBufferElementDataRemarks
This is a collider for the DOTSDynamicBoneSystem
Fields
aabb
Declaration
public Aabb aabbField Value
| Type | Description | 
|---|---|
| Aabb | 
boneEntity
Declaration
public Entity boneEntityField Value
| Type | Description | 
|---|---|
| Entity | the bone entity associated with this collider | 
collider
Declaration
public Unity.Physics.PhysicsCollider colliderField Value
| Type | Description | 
|---|---|
| Unity.Physics.PhysicsCollider | Collider associated with the particle | 
collisionEvent
Declaration
public AColliderCollisionEvent collisionEventField Value
| Type | Description | 
|---|---|
| AColliderCollisionEvent | AColliderProperties generated with DOTS Dynamic Bone with PhysicsShape | 
enabled
Declaration
public bool enabledField Value
| Type | Description | 
|---|---|
| System.Boolean | whether or not the collider is enabled. | 
entity
Declaration
public Entity entityField Value
| Type | Description | 
|---|---|
| Entity | the collider entity | 
fallbackToParicleRadiusOnNullPhysicsCollider
Declaration
public bool fallbackToParicleRadiusOnNullPhysicsColliderField Value
| Type | Description | 
|---|---|
| System.Boolean | set to true to use the Particle's m_Radius to perform collisions when the Particle's PhysicsCollider is null and UseParticlePhysicsCollider is true | 
IsCollided
Declaration
public bool IsCollidedField Value
| Type | Description | 
|---|---|
| System.Boolean | set this to true to have this collider always return true | 
m_Height
Declaration
public float m_HeightField Value
| Type | Description | 
|---|---|
| System.Single | The height of the capsule. | 
m_Radius
Declaration
public float m_RadiusField Value
| Type | Description | 
|---|---|
| System.Single | The radius of the sphere or capsule. | 
persistant
Declaration
public bool persistantField Value
| Type | Description | 
|---|---|
| System.Boolean | set this to true to prevent the removal of this collider from the DynamicBuffer at the end of the frame | 
transform
Declaration
public ParticleTransform transformField Value
| Type | Description | 
|---|---|
| ParticleTransform | the entity's Transform | 
useParticlePhysicsCollider
Declaration
public bool useParticlePhysicsColliderField Value
| Type | Description | 
|---|---|
| System.Boolean | set to true to use the Unity.Physics.PhysicsCollider data stored within a Particle | 
useUnityPhysicsCollider
Declaration
public bool useUnityPhysicsColliderField Value
| Type | Description | 
|---|---|
| System.Boolean | Set this to true to use the Unity.Physics.Collider in stead of the inernally stored values | 
Properties
m_Bound
Declaration
public TransformsExtensions.Bound m_Bound { get; set; }Property Value
| Type | Description | 
|---|---|
| TransformsExtensions.Bound | the collider collision bound type | 
m_Center
Declaration
public float3 m_Center { get; set; }Property Value
| Type | Description | 
|---|---|
| float3 | the collision center | 
m_Direction
Declaration
public TransformsExtensions.Direction m_Direction { get; set; }Property Value
| Type | Description | 
|---|---|
| TransformsExtensions.Direction | The axis of the collider's height. | 
Null
Declaration
public static readonly DOTSDynamicBoneCollider_BufferElement Null { get; }Property Value
| Type | Description | 
|---|---|
| DOTSDynamicBoneCollider_BufferElement | A Null Collider | 
Methods
Collide(ref float3, Single)
Tests for a collision
Declaration
public bool Collide(ref float3 particlePosition, float particleRadius)Parameters
| Type | Name | Description | 
|---|---|---|
| float3 | particlePosition | position | 
| System.Single | particleRadius | radius | 
Returns
| Type | Description | 
|---|---|
| System.Boolean |