浏览代码

Fixed ball restitution issue

/main
mikegeig 5 年前
当前提交
1ab32ce6
共有 4 个文件被更改,包括 239 次插入29 次删除
  1. 149
      DOTS_Pong/Assets/Ball.prefab
  2. 64
      DOTS_Pong/Assets/Scenes/Pong.unity
  3. 47
      DOTS_Pong/Assets/PhysicsCategoryNames.asset
  4. 8
      DOTS_Pong/Assets/PhysicsCategoryNames.asset.meta

149
DOTS_Pong/Assets/Ball.prefab


- component: {fileID: 3502562278443985488}
- component: {fileID: 5540837565740517926}
- component: {fileID: 4369605174179421615}
- component: {fileID: 5998495019486483595}
- component: {fileID: 3563139634143517313}
- component: {fileID: 4060451081427220432}
- component: {fileID: 1493825305114103367}
m_Layer: 0
m_Name: Ball
m_TagString: Untagged

m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!135 &5998495019486483595
SphereCollider:
--- !u!114 &710304911809870656
MonoBehaviour:
m_Material: {fileID: 13400000, guid: 7d69b57da7ee6d34bbf7a5272e067635, type: 2}
m_IsTrigger: 0
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}
--- !u!54 &3563139634143517313
Rigidbody:
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3}
m_Name:
m_EditorClassIdentifier:
ConversionMode: 0
--- !u!114 &-8228592243626107727
MonoBehaviour:
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 8
m_CollisionDetection: 0
--- !u!114 &710304911809870656
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8c7a07eafff724c4fbd9eaa76c212dd8, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &7136671490792183030
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3}
m_Script: {fileID: 11500000, guid: f3a346d13eb3ccd4e91ee975f89ba2b7, type: 3}
ConversionMode: 0
--- !u!114 &-8228592243626107727
increasePerSecond: 0.2
--- !u!114 &4060451081427220432
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8c7a07eafff724c4fbd9eaa76c212dd8, type: 3}
m_Script: {fileID: 11500000, guid: ccea9ea98e38942e0b0938c27ed1903e, type: 3}
--- !u!114 &7136671490792183030
m_MotionType: 0
m_Mass: 1
m_LinearDamping: 0
m_AngularDamping: 0
m_InitialLinearVelocity:
x: 0
y: 0
z: 0
m_InitialAngularVelocity:
x: 0
y: 0
z: 0
m_GravityFactor: 0
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!114 &1493825305114103367
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f3a346d13eb3ccd4e91ee975f89ba2b7, type: 3}
m_Script: {fileID: 11500000, guid: b275e5f92732148048d7b77e264ac30e, type: 3}
increasePerSecond: 0.35
totalMultiplier: 0
m_ShapeType: 2
m_PrimitiveCenter:
x: 0
y: 0
z: 0
m_PrimitiveSize:
x: 1
y: 1
z: 1
m_PrimitiveOrientation:
Value:
x: -0
y: 0
z: 0
RotationOrder: 4
m_Capsule:
Height: 1
Radius: 0.5
Axis: 2
m_Cylinder:
Height: 1
Radius: 0.5
Axis: 2
m_CylinderSideCount: 20
m_SphereRadius: 0.5
m_MinimumSkinnedVertexWeight: 0.1
m_ConvexHullGenerationParameters:
m_SimplificationTolerance: 0.014999999
m_BevelRadius: 0.05
m_MinimumAngle: 2.5000002
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: 1
m_Restitution:
m_Override: 0
m_Value:
Value: 1
CombineMode: 2
m_BelongsTo:
m_Override: 0
m_Value: 0001000000000000000000000000000000000000000000000000000000000000
m_CollidesWith:
m_Override: 0
m_Value: 0100010101010101010101010101010101010101010101010101010101010101
m_RaisesCollisionEvents:
m_Override: 0
m_Value: 0
m_CustomTags:
m_Override: 0
m_Value: 0000000000000000
m_ConvexRadius_Deprecated: -1

64
DOTS_Pong/Assets/Scenes/Pong.unity


m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!1 &346995278
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 346995281}
- component: {fileID: 346995280}
- component: {fileID: 346995279}
m_Layer: 0
m_Name: Physics Settings
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &346995279
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 346995278}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea7d7495833204790ba1d3a8755397f8, type: 3}
m_Name:
m_EditorClassIdentifier:
ConversionMode: 0
--- !u!114 &346995280
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 346995278}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4d30974bf68d61043b1572197db94cdc, type: 3}
m_Name:
m_EditorClassIdentifier:
SimulationType: 1
Gravity:
x: -0
y: -9.81
z: -0
SolverIterationCount: 4
ThreadCountHint: 8
--- !u!4 &346995281
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 346995278}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &705507993
GameObject:
m_ObjectHideFlags: 0

47
DOTS_Pong/Assets/PhysicsCategoryNames.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cea4b49c4d6784a3291bea84d8086c8e, type: 3}
m_Name: PhysicsCategoryNames
m_EditorClassIdentifier:
m_CategoryNames:
- NotBall
- Ball
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

8
DOTS_Pong/Assets/PhysicsCategoryNames.asset.meta


fileFormatVersion: 2
guid: 6b3be71c0e0f77546960b30479663d79
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存