Home Game Development Physics 2D assist – Cocos Creator

Physics 2D assist – Cocos Creator

0
Physics 2D assist – Cocos Creator

[ad_1]

Hello,
I’m attempting so as to add some primary 2Dphysics to my sport however I believe I’m doing one thing fallacious because it’s not working as anticipated.

I’ve a easy sprite body inside a canvas, hooked up inflexible physique + collider and nothing is going on, I might anticipate the sprite to fall down or one thing. On prime of that mass appears to be all the time 0, regardless of the values I can put in density/dimension.
If I add any velocity, it received’t transfer both (i suppose trigger mass is 0?).
PhysicsSystem2D.occasion.enabled is about to true by default it appears however I additionally compelled it simply in case.

Any thought? (utilizing cocos creator 3.6)

what you imply of fall down ? possibly you may consult with this to get what can do with physics : GitHub – cocos-creator/cocos-example-physics: Samples for 3d physics

I can affirm it’s the preview editor. I didn’t do some other modifications to the physics, simply switching the editor made it work. Thanks for the assistance

@linrm All I meant is that I used to be anticipating the character to be falling down due to gravity.

As your screenshot, you’re utilizing physic 2nd builtin. It used for examine collide primary. You ought to use box2d physic on venture settings as pandamicro advocate

Hi @pandamicro ,

any replace on the bugfix for the box2d physics in Editor Preview? Would be actually nice to have the ability to use the Editor Preview, because it gives extra debugging performance as a result of truth, that one can examine the scene view.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here