MCPcopy Create free account
hub / github.com/cinder/Cinder / setPosition

Method setPosition

samples/FallingGears/src/SceneObjects.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17// ----------------------------------------------------------------------------------------------------
18
19void SceneObject::setPosition( const ci::vec2 &pos )
20{
21 mBody->SetTransform( b2Vec2( pos.x, pos.y ), mBody->GetAngle() );
22}
23
24vec2 SceneObject::getPos() const
25{

Callers 4

reConfigIslandGroupMethod · 0.45
path2dpart3.jsFile · 0.45
path2dpart2.jsFile · 0.45
path2dpart1.jsFile · 0.45

Calls 3

SetTransformMethod · 0.80
b2Vec2Class · 0.50
GetAngleMethod · 0.45

Tested by

no test coverage detected