Interface ISmoothDamp
Smooth the child cube position towards the parent cube position
Namespace: XRC.Students.SU2023.IN03.Chen
Assembly: cs.temp.dll.dll
Syntax
public interface ISmoothDamp
Methods
ApplySmoothDamp(Transform, Transform, Vector3)
Smooth the child cube position towards the parent cube position
Declaration
virtual Vector3 ApplySmoothDamp(Transform parent, Transform self, Vector3 initialPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | parent | The parent cube transform |
| Transform | self | The child cube transform |
| Vector3 | initialPosition | The initial position of the child cube when Update was last called. |
Returns
| Type | Description |
|---|---|
| Vector3 | The position of the child cube after applying smooth damp. |