Skip to content

Add Object::TimeToCollision and SE_GetTimeToCollision API#821

Closed
kosuke55 wants to merge 3 commits into
esmini:devfrom
kosuke55:feat/get-time-to-collision-api
Closed

Add Object::TimeToCollision and SE_GetTimeToCollision API#821
kosuke55 wants to merge 3 commits into
esmini:devfrom
kosuke55:feat/get-time-to-collision-api

Conversation

@kosuke55

@kosuke55 kosuke55 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Hi, thanks for the great project!

Add time-to-collision computation as Object::TimeToCollision and expose it via SE_GetTimeToCollision in esminiLib.
TrigByTimeToCollision::CheckCondition delegates the object-to-object path to the new method (no behavior change).

@kosuke55 kosuke55 changed the title Feat/get time to collision api Add Object::TimeToCollision and SE_GetTimeToCollision API Jul 2, 2026
@kosuke55
kosuke55 force-pushed the feat/get-time-to-collision-api branch from 2aa02d5 to 255e7e9 Compare July 2, 2026 14:27
@kosuke55

kosuke55 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@eknabevcc
I'd love it if you could take a look when you have some time!

@kosuke55
kosuke55 force-pushed the feat/get-time-to-collision-api branch from 255e7e9 to f1bae24 Compare July 16, 2026 13:13
@kosuke55
kosuke55 force-pushed the feat/get-time-to-collision-api branch from f1bae24 to d19a7dd Compare July 16, 2026 13:17
@kosuke55
kosuke55 force-pushed the feat/get-time-to-collision-api branch from d19a7dd to 396d1ae Compare July 16, 2026 13:19
@kosuke55

Copy link
Copy Markdown
Contributor Author

Ah sorry, fixed the clang-format CI.

@eknabevcc

Copy link
Copy Markdown
Collaborator

FYI: We're looking into this nice contribution. For example, will fix the C# wrapper.

eknabevcc pushed a commit that referenced this pull request Jul 16, 2026
- move ttc calculations from condition to Object class
- expose it by adding SE_GetTimeToCollision to esminiLib
@eknabevcc

Copy link
Copy Markdown
Collaborator

Thanks for this nice improvement!

Since I haven't learnt fully how to operate on PR itself, I squashed your commits and fixed the C# wrapper (into a single commit a08a439 with you as author) in a separate branch. It's now merged on dev and will hence be included in next release.

Closing the PR (unfortunately it will wrongly look like not merged)

@eknabevcc eknabevcc closed this Jul 16, 2026
@kosuke55

Copy link
Copy Markdown
Contributor Author

Thank you for taking the time to review and merge it! Really appreciate the C# wrapper fix too.

@eknabevcc

Copy link
Copy Markdown
Collaborator

Included in v3.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants