Projectile Motion in WCK

Hi all:

Recently i was doing a game like "AngryBird".I started of doing with WCK Tools.

now i was held up with one problem.. now i need to applying the projectile motion to the Object.

I don't find any tutorials on WCK. can anyone help me to solve this issue ..

Any idea or code would be greatly appreciated, waiting for all your reply.


Thanks,
Once you have your BodyShape instance (the bird) just set the linearVelocity property:

myProjectile.linearVelocity = new V2(5, 5);
Hi mayobutter,

Thanks for ur reply,

when i tried using ur code it shows some error like

Assertion failed: (b2IsValid(bd->linearDamping) && bd->linearDamping >= 0.0f), function b2Body, file ../Box2D/Dynamics/b2Body.cpp, line 33.

[object AlchemyExit]

u have any sample file or code for this?

Original thread: https://box2d.org/forum/viewtopic.php?t=7451