MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / collide

Method collide

source/game/StarParticle.cpp:204–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void Particle::collide(Vec2F const& collisionPosition) {
205 position = collisionPosition;
206 approach = Vec2F();
207 velocity = finalVelocity = Vec2F();
208 destroy(true);
209}
210
211void Particle::destroy(bool withDestruction) {
212 if (withDestruction) {

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected