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

Detect size of a vehicle and verify it can fit before spawning it #67

Open
3Mydlo3 opened this issue Feb 15, 2024 · 0 comments
Open

Detect size of a vehicle and verify it can fit before spawning it #67

3Mydlo3 opened this issue Feb 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@3Mydlo3
Copy link
Member

3Mydlo3 commented Feb 15, 2024

Currently there's a dumb implementation that uses 5 m radius check for obstacles at the spawn point. This might work well for cars, but it might be an issue for bigger helicopters (as their model center might be outside check radius, but blades will still be in range) or planes (which we don't have at the moment).

It should get replaced at some point, sizeOf was proposed during initial implementation in #63, but it's not ideal.

At least one object of the given classname has to be present in the current mission otherwise zero will be returned.
https://community.bistudio.com/wiki/sizeOf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant