MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetAngularVelocity

Method SetAngularVelocity

Source/Objects/itemobject.cpp:168–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void ItemObject::SetAngularVelocity(vec3 vel) {
169 bullet_object_->SetDamping(0.0f, 0.0f);
170 bullet_object_->SetAngularVelocity(vel);
171}
172
173void ItemObject::HandleItemObjectMaterialEvent(const std::string& the_event, const vec3& normal, const vec3& event_pos, float gain, float pitch_shift) {
174 const MaterialEvent* me = scenegraph_->GetMaterialEvent(the_event, event_pos, item_ref_->GetSoundModifier(), this);

Callers 4

MovedMethod · 0.45
UpdateMethod · 0.45
SetVelocitiesMethod · 0.45
StickToEnvironmentMethod · 0.45

Calls 1

SetDampingMethod · 0.45

Tested by

no test coverage detected