defold / defold/defold

Curve as script property

Open
#10,950 0 comments 4 reactions 0 assignees View on GitHub
bob editor engine feature request go_property
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
2d 2h
Merged PRs (30d)
129

Description

**Is your feature request related to a problem? Please describe (REQUIRED):**
It would be great if a new field type such as ‘curve’ was added for scripts. To adjust them, we can use the existing UI from ParticleFX.

**Describe the solution you'd like (REQUIRED):**
`go.property("field_name", curve.linear(time_start, value_start, time_end, value_end))`
`curve.evaluate(self.field_name, t) -> value`
etc

**Describe alternatives you've considered (REQUIRED):**
Use imgui and create some in-game editor?..

**Additional context (OPTIONAL):**
I am currently working on car physics, and without visual curve adjustment, it is very difficult to achieve the desired result, i.e. I need to adjust how forces change as speed increases, and so on.

Curves also can be used to set custom animations for `go.animate`.

Also:
* https://github.com/defold/extension-simpledata/issues/17

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.