[Player] Add simple Pulver point-based following behind Trafalgar. Leave option for manually-directed movement.

This commit is contained in:
Michal Pikulski
2025-09-02 13:20:17 +02:00
parent 51055a2af0
commit 48c4992517
6 changed files with 199 additions and 26 deletions

View File

@@ -15,9 +15,9 @@ GameObject:
- component: {fileID: 2999879259114430221}
- component: {fileID: 7393789300602426170}
- component: {fileID: 1676944588148945034}
m_Layer: 0
m_Layer: 7
m_Name: PlayerCharacter
m_TagString: Untagged
m_TagString: Player
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
@@ -221,6 +221,10 @@ PrefabInstance:
propertyPath: m_Name
value: Trafalgar
objectReference: {fileID: 0}
- target: {fileID: 784715772773378889, guid: 361ccc9ef82acef4784b24b72013d971, type: 3}
propertyPath: m_Layer
value: 7
objectReference: {fileID: 0}
- target: {fileID: 7877460049793670011, guid: 361ccc9ef82acef4784b24b72013d971, type: 3}
propertyPath: m_LocalScale.x
value: 0.5

View File

@@ -11,7 +11,8 @@ GameObject:
- component: {fileID: 6668392923879433376}
- component: {fileID: 2732140975288177209}
- component: {fileID: 566650525959955209}
m_Layer: 0
- component: {fileID: 7160527734420460260}
m_Layer: 8
m_Name: PulverCharacter
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -125,3 +126,24 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &7160527734420460260
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1102468210854536367}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f82afe7b57bd4e0b9f51a1cca06765f1, type: 3}
m_Name:
m_EditorClassIdentifier:
followDistance: 2
debugDrawTarget: 1
followUpdateInterval: 0.1
manualMoveSmooth: 5
acceleration: 10
deceleration: 12
thresholdFar: 5
thresholdNear: 3
stopThreshold: 0.25