Spline support #1212
Replies: 5 comments 6 replies
-
Its looking nice! However, perhaps it would be better to have the spline as a basic standalone class that components can then use. This would let it be more flexible for future tools/components. And a standard component that uses it could be provided as well like you have now. An example use-case might be a road system. You most likely would want to have multiple splines but not want to have to add a new entity/component for each one. |
Beta Was this translation helpful? Give feedback.
-
I'm thinking about the approach you took with spline nodes, and at the moment I think having child entities is the simplest option. In that case rather than keeping a list with references you can just apply the ordering of the children. A more advanced system could keep everything within the spline component, such that you would have a list of nodes (TRS + tangents) and maintain node selection within the spline gizmo - this would require the gizmo to include both TRS controller for tangent balls and for the nodes. On the editor weird behavior messing up your spline - no clue - my constraint gizmo doesn't show up when you add a component straight away, but selecting another entity and reselecting makes it appear. |
Beta Was this translation helpful? Give feedback.
-
Quick update:
Spline by code `public override void Start()
}` Closest point on spline demo
Closest.point.demo.spline.mp4 |
Beta Was this translation helpful? Give feedback.
-
First PR and recording out the door: #1287 |
Beta Was this translation helpful? Give feedback.
-
Has there been any movement on this? I'm evaluating stride and our current project depends almost entirely on splines. |
Beta Was this translation helpful? Give feedback.
-
I have been working on Splines (a bit on and off) and I would like to have some feedback on my approach so far:
For the base of Spline support I want to have the following options:
Components:
Requirements:
Current shortcomings:
-SplineNodeGizmo and SplineNode, would be the place were this is introduced.
Here is a video demonstrating above: https://www.youtube.com/watch?v=CYJ5Jf370ns
Stride repo: https://github.com/Aggror/Stride/tree/SplineBase
Code is not final, nor is it properly formatted with the coding guidelines of Stride yet. I am trying to work out the functionality first.
Base test project: https://github.com/Aggror/SplineTools
Future components:
Beta Was this translation helpful? Give feedback.
All reactions