standing stickman with physics

is there a way to make a stick man standing to which we can throw (physics) things at and that will react to them.

like the rag doll but not sloppy … i want it to support its own weight.

Of course i could make the head static but it would be hanging there, not really standing.

and i also don’t want to make it shaped like a pyramid just to make it stand. I’d like it as realistic as possible.

thanks

Edualc

I suppose you could make the feet static and apply a continuous upwards force to the head. The force should be strong enough to keep the stick man erect, but weak enough that he can be knocked around. That way the stick man would stand up when he’s idle, but he would react / bend if he were hit by another physics object.

_“apply a continuous upwards force to the head” - _how can I do this ?

Add an enterFrame handler and inside it, call object:applyForce() on the head

See documentation

http://docs.coronalabs.com/api/event/enterFrame/index.html

http://docs.coronalabs.com/api/type/Body/applyForce.html

of course  … nice !

so it’s really a matter of streching it up … he may get a sore neck but too bad !

thanks !
 

I suppose you could make the feet static and apply a continuous upwards force to the head. The force should be strong enough to keep the stick man erect, but weak enough that he can be knocked around. That way the stick man would stand up when he’s idle, but he would react / bend if he were hit by another physics object.

_“apply a continuous upwards force to the head” - _how can I do this ?

Add an enterFrame handler and inside it, call object:applyForce() on the head

See documentation

http://docs.coronalabs.com/api/event/enterFrame/index.html

http://docs.coronalabs.com/api/type/Body/applyForce.html

of course  … nice !

so it’s really a matter of streching it up … he may get a sore neck but too bad !

thanks !