Protfolio-Emanuel-Polsky / Assets / _Project / Code / VerletIntegration / InteractionFlag / Component / InteractionsPorperties.cs
InteractionsPorperties.cs
Raw
using Unity.Entities;
using Unity.Mathematics;

namespace GarmentButton.VerletIntegration.Interaction
{
    
    public struct FlagInteractionEnableTag : IComponentData, IEnableableComponent { }

    public struct CurrentInteractable : IBufferElementData
    {
        public Entity Entity;
    }
    public struct FlagTag : IComponentData { }
    
    public struct InteractableWithClothTag : IComponentData{}
    
    
    
    
    public struct CapsuleInteraction
    {
        public float3 PositionA, PositionB;
        public float3 Velocity;
        public int HowMany;
        public float Radius;
    }

    public struct SphereInteraction
    {
        public float3 Center;
        public float3 Velocity;
        public int HowMany;
        public float Radius;
    }
    
    public struct BoxInteraction
    {
        public float3 Center;
        public float3 HalfSize;
        public quaternion Rotation;
        public float3 Velocity;
        public int HowMany;
    }


}