We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to reproduce:
Launch EE with scenario_10_empty.lua and the HTTP API enabled.
Open the GM station and select the large blue planet.
Run:
planet = getGMSelection()[1] planet:setPlanetRadius(10000)
Create a ship and put it south of the resized planet.
Unpause the scenario.
Expected behavior:
Observed behavior:
Likely cause:
In planet.cpp this sets the collision radius:
void Planet::updateCollisionSize() { setRadius(planet_size); if (std::abs(distance_from_movement_plane) >= planet_size) { collision_size = -1.0; }else{ collision_size = sqrt((planet_size * planet_size) - (distance_from_movement_plane * distance_from_movement_plane)) * 1.1f; setCollisionRadius(collision_size); setCollisionPhysics(true, true); } }
but it only seems to be triggered in update() and only if collision_size == -2.0f, which is the default value upon instantiation.
update()
collision_size == -2.0f
void Planet::update(float delta) { if (collision_size == -2.0f) { updateCollisionSize(); if (collision_size > 0.0f) PathPlannerManager::getInstance()->addAvoidObject(this, collision_size); }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Steps to reproduce:
Launch EE with scenario_10_empty.lua and the HTTP API enabled.
Open the GM station and select the large blue planet.
Run:
Create a ship and put it south of the resized planet.
Unpause the scenario.
Expected behavior:
Observed behavior:
Likely cause:
In planet.cpp this sets the collision radius:
but it only seems to be triggered in
update()
and only ifcollision_size == -2.0f
, which is the default value upon instantiation.The text was updated successfully, but these errors were encountered: