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