Mike Geig
5 年前
当前提交
55fb0815
共有 22 个文件被更改,包括 3104 次插入 和 522 次删除
-
26Assets/Scripts/Boat/Engine.cs
-
71Assets/Unity Physics Items/AIController_DOTS.cs
-
2Assets/Unity Physics Items/AIController_DOTS.cs.meta
-
67Assets/Unity Physics Items/BuoyantObject_DOTS.cs
-
22Assets/Unity Physics Items/Components/BoatDataComponents.cs
-
432Assets/Unity Physics Items/Physics Scene.unity
-
980Assets/Unity Physics Items/Prefabs/AIBoatEntity Variant.prefab
-
514Assets/Unity Physics Items/Prefabs/BoatEntity.prefab
-
95Assets/Unity Physics Items/Systems/ApplyBuoyancyForceSystem.cs
-
47Assets/Unity Physics Items/Systems/DriveSystem.cs
-
13Assets/Unity Physics Items/Systems/GertsnerSystem.cs
-
2Assets/Unity Physics Items/Systems/InputSystem.cs
-
2Packages/com.verasl.water-system/Scripts/BuoyantObject.cs
-
2Packages/manifest.json
-
13Assets/Scripts/Utility/PlatformFramerateLock.cs
-
11Assets/Scripts/Utility/PlatformFramerateLock.cs.meta
-
36Assets/Unity Physics Items/BuoyancyVisualizer.cs
-
11Assets/Unity Physics Items/BuoyancyVisualizer.cs.meta
-
1001Assets/Unity Physics Items/Junk.unity
-
7Assets/Unity Physics Items/Junk.unity.meta
-
265Assets/Unity Physics Items/Prefabs/DOTS Buoy.prefab
-
7Assets/Unity Physics Items/Prefabs/DOTS Buoy.prefab.meta
980
Assets/Unity Physics Items/Prefabs/AIBoatEntity Variant.prefab
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
public class PlatformFramerateLock : MonoBehaviour |
|||
{ |
|||
// Start is called before the first frame update
|
|||
void Start() |
|||
{ |
|||
//Basic for now. Replace with the platform logic
|
|||
Application.targetFrameRate = (int)(1f / Time.fixedDeltaTime); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 5ae29956cf8054547aefea0657115f31 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using Unity.Mathematics; |
|||
using Unity.Entities; |
|||
|
|||
public class BuoyancyVisualizer : MonoBehaviour, IConvertGameObjectToEntity |
|||
{ |
|||
public Entity boat; |
|||
|
|||
private void OnDrawGizmos() |
|||
{ |
|||
if (!Application.isPlaying) |
|||
return; |
|||
|
|||
DynamicBuffer<VoxelHeight> heights = World.Active.EntityManager.GetBuffer<VoxelHeight>(boat); |
|||
DynamicBuffer<VoxelOffset> offsets = World.Active.EntityManager.GetBuffer<VoxelOffset>(boat); |
|||
|
|||
|
|||
Gizmos.color = Color.red; |
|||
|
|||
|
|||
|
|||
for (int i = 0; i < heights.Length; i++) |
|||
Gizmos.DrawSphere(new Vector3(transform.position.x + offsets[i].Value.x, heights[i].Value.y, offsets[i].Value.z + transform.position.z), .1f); |
|||
} |
|||
|
|||
public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem) |
|||
{ |
|||
|
|||
if (boat == Entity.Null) |
|||
{ |
|||
boat = conversionSystem.GetPrimaryEntity(transform.parent); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 9d7931266a1a8224ea5dfc21625ffde1 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
Assets/Unity Physics Items/Junk.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: 4c9021618b4f57942adc0278fef71036 |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1 &2710428803363308588 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 2708360549199760384} |
|||
- component: {fileID: 2710428803363308577} |
|||
- component: {fileID: 2710428803363308590} |
|||
- component: {fileID: 2710428803363308591} |
|||
- component: {fileID: 2710428803363308576} |
|||
m_Layer: 0 |
|||
m_Name: DOTS Buoy |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &2708360549199760384 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2710428803363308588} |
|||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} |
|||
m_LocalPosition: {x: -99.4, y: 0.686, z: 1.6} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 3824473869457911851} |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &2710428803363308577 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2710428803363308588} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 0fe52c158d195e64a99e4eaa38bb3df7, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
_buoyancyType: 0 |
|||
density: 0 |
|||
volume: 0 |
|||
voxelResolution: 0.51 |
|||
centerOfMass: {x: 0, y: 0, z: 0} |
|||
voxels: |
|||
- {x: 0, y: 0, z: 0} |
|||
colliders: [] |
|||
percentSubmerged: 0 |
|||
--- !u!114 &2710428803363308590 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2710428803363308588} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
ConversionMode: 0 |
|||
--- !u!114 &2710428803363308591 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2710428803363308588} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: b275e5f92732148048d7b77e264ac30e, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_ShapeType: 1 |
|||
m_PrimitiveCenter: |
|||
x: -0.000000059604645 |
|||
y: -0.525918 |
|||
z: 0.030020773 |
|||
m_PrimitiveSize: |
|||
x: 1.2003503 |
|||
y: 1.2003503 |
|||
z: 1.7400162 |
|||
m_PrimitiveOrientation: |
|||
Value: |
|||
x: 270 |
|||
y: 270 |
|||
z: 0 |
|||
RotationOrder: 4 |
|||
m_Capsule: |
|||
Height: 1.7400162 |
|||
Radius: 0.60017514 |
|||
Axis: 2 |
|||
m_Cylinder: |
|||
Height: 1.7400162 |
|||
Radius: 0.60017514 |
|||
Axis: 2 |
|||
m_SphereRadius: 0.8700081 |
|||
m_ConvexRadius: 0.05 |
|||
m_CustomMesh: {fileID: 0} |
|||
m_Material: |
|||
m_SupportsTemplate: 1 |
|||
m_Template: {fileID: 0} |
|||
m_IsTrigger: |
|||
m_Override: 0 |
|||
m_Value: 0 |
|||
m_Friction: |
|||
m_Override: 0 |
|||
m_Value: |
|||
Value: 0 |
|||
CombineMode: 0 |
|||
m_Restitution: |
|||
m_Override: 0 |
|||
m_Value: |
|||
Value: 0 |
|||
CombineMode: 2 |
|||
m_BelongsTo: |
|||
m_Override: 0 |
|||
m_Value: 0101010101010101010101010101010101010101010101010101010101010101 |
|||
m_CollidesWith: |
|||
m_Override: 0 |
|||
m_Value: 0101010101010101010101010101010101010101010101010101010101010101 |
|||
m_RaisesCollisionEvents: |
|||
m_Override: 0 |
|||
m_Value: 0 |
|||
m_CustomTags: |
|||
m_Override: 0 |
|||
m_Value: 0000000000000000 |
|||
--- !u!114 &2710428803363308576 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2710428803363308588} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: ccea9ea98e38942e0b0938c27ed1903e, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_MotionType: 1 |
|||
m_Mass: 1 |
|||
m_LinearDamping: 0.01 |
|||
m_AngularDamping: 0.05 |
|||
m_InitialLinearVelocity: |
|||
x: 0 |
|||
y: 0 |
|||
z: 0 |
|||
m_InitialAngularVelocity: |
|||
x: 0 |
|||
y: 0 |
|||
z: 0 |
|||
m_GravityFactor: 1 |
|||
m_OverrideDefaultMassDistribution: 0 |
|||
m_CenterOfMass: |
|||
x: 0 |
|||
y: 0 |
|||
z: 0 |
|||
m_Orientation: |
|||
Value: |
|||
x: 0 |
|||
y: 0 |
|||
z: 0 |
|||
RotationOrder: 4 |
|||
m_InertiaTensor: |
|||
x: 0.4 |
|||
y: 0.4 |
|||
z: 0.4 |
|||
m_CustomTags: |
|||
Tag00: 0 |
|||
Tag01: 0 |
|||
Tag02: 0 |
|||
Tag03: 0 |
|||
Tag04: 0 |
|||
Tag05: 0 |
|||
Tag06: 0 |
|||
Tag07: 0 |
|||
--- !u!1 &3824473869457911848 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 3824473869457911851} |
|||
- component: {fileID: 3824473869457911853} |
|||
- component: {fileID: 3824473869457911850} |
|||
m_Layer: 0 |
|||
m_Name: BuoyMesh |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &3824473869457911851 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 3824473869457911848} |
|||
m_LocalRotation: {x: 1, y: 0, z: 0, w: 0} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 2708360549199760384} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 180, y: 0, z: 0} |
|||
--- !u!33 &3824473869457911853 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 3824473869457911848} |
|||
m_Mesh: {fileID: 4300016, guid: 92a669df93f0d4f99bd8fa27767e8c9e, type: 3} |
|||
--- !u!23 &3824473869457911850 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 3824473869457911848} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RayTracingMode: 2 |
|||
m_RenderingLayerMask: 1 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: b1aaf92c06be94931a4e515a4812f42e, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_ReceiveGI: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 1 |
|||
m_SelectedEditorRenderState: 3 |
|||
m_MinimumChartSize: 4 |
|||
m_AutoUVMaxDistance: 0.5 |
|||
m_AutoUVMaxAngle: 89 |
|||
m_LightmapParameters: {fileID: 0} |
|||
m_SortingLayerID: 0 |
|||
m_SortingLayer: 0 |
|||
m_SortingOrder: 0 |
|
|||
fileFormatVersion: 2 |
|||
guid: 487c4de658279d44e8cfff92b4324a0c |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue