ios - SKSpriteKit how to control Impulse or Force speed? -



ios - SKSpriteKit how to control Impulse or Force speed? -

hi guys want apply slow motion in upward direction,

what confused, when applyimpulse

[self.physicsbody applyimpulse:cgvectormake(0, 60)];

it applyimpulse required speed measure velocity mass , other physics things

what need applyimpulse controlling speed of impluse applied on object on impulse beingness applied.

i tried set self.speed got no success, how 1 can accomplish desired impluse or forcefulness on sprite controlling on speed.

are there properties should set skspritenode before applying impulse,

or thing else? suggestion or thoughts appreciated

thanks

the speed property of sknode skactions, speed property of skphysicsworld want tweak accomplish physics in slow motion.

it says next in documentation speed property of skphysicsworld

the default value 1.0, means simulation runs @ normal speed. value other default changes rate @ time passes in physics simulation. example, speed value of 2.0 indicates time in physics simulation passes twice fast scene’s simulation time. value of 0.0 pauses physics simulation.

access within skscene subclass this-

self.physicsworld.speed = 0.5; // half speed (slow motion)

ios skspritenode

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -