Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character spawn rotation #3226

Open
CuriousMike56 opened this issue Feb 9, 2025 · 1 comment
Open

Character spawn rotation #3226

CuriousMike56 opened this issue Feb 9, 2025 · 1 comment

Comments

@CuriousMike56
Copy link
Member

In recent builds, the character occasionally spawns facing the opposite direction:

Image

The initial spawn rotation is determined by the existence of a predefined terrain actor.

It would be great if StartRotation was added to the terrn2 file format, existing maps without this would fallback to the current behavior.

@ohlidalp
Copy link
Member

ohlidalp commented Mar 7, 2025

Easy to implement, you may be able to do it yourself by following the existing terrn2 setting [General] StartPosition and adding StartRotation

Parsing :https://github.com/RigsOfRods/rigs-of-rods/blob/master/source%2Fmain%2Fresources%2Fterrn2_fileformat%2FTerrn2FileFormat.cpp#L80

Spawning: https://github.com/RigsOfRods/rigs-of-rods/blob/master/source%2Fmain%2FGameContext.cpp#L846-L853

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

No branches or pull requests

2 participants