您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
33 行
689 B
33 行
689 B
using Unity.Entities;
|
|
using Unity.Mathematics;
|
|
using static WaterSystem.BuoyantObject_DOTS;
|
|
|
|
public struct BuoyantData : IComponentData
|
|
{
|
|
public BuoyancyType type;
|
|
public float voxelResolution;
|
|
public float3 normal;
|
|
public float3 localArchimedesForce;
|
|
public float percentSubmerged;
|
|
public float baseDrag;
|
|
public float baseAngularDrag;
|
|
}
|
|
|
|
public struct VoxelOffset : IBufferElementData
|
|
{
|
|
public float3 Value;
|
|
}
|
|
public struct VoxelHeight : IBufferElementData
|
|
{
|
|
public float3 Value;
|
|
}
|
|
|
|
public struct DrivingData : IComponentData
|
|
{
|
|
public bool isHuman;
|
|
public float torque;
|
|
public float horsePower;
|
|
public float3 engineOffset;
|
|
public float throttle;
|
|
public float steering;
|
|
}
|