绳子修改
This commit is contained in:
@@ -252,7 +252,7 @@ Transform:
|
||||
m_GameObject: {fileID: 562189915}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0.7071067, w: 0.70710695}
|
||||
m_LocalPosition: {x: -1.406, y: -0, z: 0.9375}
|
||||
m_LocalPosition: {x: -3.47, y: -0, z: 0.9375}
|
||||
m_LocalScale: {x: 1, y: 0.20000012, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@@ -394,6 +394,7 @@ GameObject:
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 906432239}
|
||||
- component: {fileID: 906432240}
|
||||
m_Layer: 0
|
||||
m_Name: Swings
|
||||
m_TagString: Untagged
|
||||
@@ -418,6 +419,20 @@ Transform:
|
||||
- {fileID: 562189922}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &906432240
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 906432238}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 2b777331b0af4d349e55170b5dc27c78, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::NBF.RopeLenghtTest
|
||||
Rope: {fileID: 1197291658}
|
||||
AddValue: 0.01
|
||||
--- !u!1 &963194225
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -430,6 +445,7 @@ GameObject:
|
||||
- component: {fileID: 963194227}
|
||||
- component: {fileID: 963194229}
|
||||
- component: {fileID: 963194226}
|
||||
- component: {fileID: 963194230}
|
||||
m_Layer: 0
|
||||
m_Name: Camera
|
||||
m_TagString: MainCamera
|
||||
@@ -536,13 +552,51 @@ MonoBehaviour:
|
||||
leverage: 10
|
||||
splitPickedRopeOnKey: 32
|
||||
ropes:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 1197291658}
|
||||
- {fileID: 0}
|
||||
--- !u!114 &963194230
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 963194225}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.UniversalAdditionalCameraData
|
||||
m_RenderShadows: 1
|
||||
m_RequiresDepthTextureOption: 2
|
||||
m_RequiresOpaqueTextureOption: 2
|
||||
m_CameraType: 0
|
||||
m_Cameras: []
|
||||
m_RendererIndex: -1
|
||||
m_VolumeLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 1
|
||||
m_VolumeTrigger: {fileID: 0}
|
||||
m_VolumeFrameworkUpdateModeOption: 2
|
||||
m_RenderPostProcessing: 0
|
||||
m_Antialiasing: 0
|
||||
m_AntialiasingQuality: 2
|
||||
m_StopNaN: 0
|
||||
m_Dithering: 0
|
||||
m_ClearDepth: 1
|
||||
m_AllowXRRendering: 1
|
||||
m_AllowHDROutput: 1
|
||||
m_UseScreenCoordOverride: 0
|
||||
m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_RequiresDepthTexture: 0
|
||||
m_RequiresColorTexture: 0
|
||||
m_TaaSettings:
|
||||
m_Quality: 3
|
||||
m_FrameInfluence: 0.1
|
||||
m_JitterScale: 1
|
||||
m_MipBias: 0
|
||||
m_VarianceClampScale: 0.9
|
||||
m_ContrastAdaptiveSharpening: 0
|
||||
m_Version: 2
|
||||
--- !u!1 &1197291657
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -574,14 +628,9 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 325b217b839086b4ca705834516bc0d5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
radius: 0.05
|
||||
radialVertices: 6
|
||||
isLoop: 0
|
||||
radius: 0.01
|
||||
material: {fileID: 2100000, guid: 189732c736fdb544f98524f96c34aff6, type: 2}
|
||||
shadowMode: 1
|
||||
rendering:
|
||||
useSimpleLineRenderer: 1
|
||||
simpleLineWidth: 0.02
|
||||
spawnPoints:
|
||||
- x: 0
|
||||
y: 0
|
||||
@@ -589,27 +638,25 @@ MonoBehaviour:
|
||||
- x: -2.4452248
|
||||
y: 0.06797419
|
||||
z: 0.039803684
|
||||
- x: -3.4447064
|
||||
y: 0.09575853
|
||||
z: 0.056073375
|
||||
- x: -4.444188
|
||||
y: 0.12354286
|
||||
z: 0.07234307
|
||||
interpolation: 0
|
||||
simulation:
|
||||
enabled: 1
|
||||
resolution: 5
|
||||
massPerMeter: 2
|
||||
resolution: 2
|
||||
massPerMeter: 0.02
|
||||
stiffness: 1
|
||||
energyLoss: 0.005
|
||||
lengthMultiplier: 1
|
||||
gravityMultiplier: 1
|
||||
useCustomGravity: 0
|
||||
customGravity:
|
||||
x: 0
|
||||
y: -9.81
|
||||
z: 0
|
||||
substeps: 2
|
||||
solverIterations: 3
|
||||
collisions:
|
||||
enabled: 0
|
||||
influenceRigidbodies: 0
|
||||
stride: 2
|
||||
friction: 0.1
|
||||
collisionMargin: 0.025
|
||||
ignoreLayers:
|
||||
serializedVersion: 2
|
||||
|
||||
25
Assets/Scripts/ThirdParty/Rope/Examples/00_Main/RopeLenghtTest.cs
vendored
Normal file
25
Assets/Scripts/ThirdParty/Rope/Examples/00_Main/RopeLenghtTest.cs
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class RopeLenghtTest : MonoBehaviour
|
||||
{
|
||||
public Rope Rope;
|
||||
public float AddValue = 0.01f;
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.A))
|
||||
{
|
||||
// Rope.Retract(AddValue);
|
||||
Rope.PopSpawnPoint();
|
||||
}
|
||||
|
||||
if (Input.GetKeyDown(KeyCode.D))
|
||||
{
|
||||
// Rope.Extend(AddValue);
|
||||
Rope.PushSpawnPoint();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/ThirdParty/Rope/Examples/00_Main/RopeLenghtTest.cs.meta
vendored
Normal file
3
Assets/Scripts/ThirdParty/Rope/Examples/00_Main/RopeLenghtTest.cs.meta
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b777331b0af4d349e55170b5dc27c78
|
||||
timeCreated: 1762329894
|
||||
Reference in New Issue
Block a user