Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to interact with physic world from a non-physic world? #60

Closed
aidinzolghadr opened this issue Aug 1, 2015 · 2 comments
Closed

How to interact with physic world from a non-physic world? #60

aidinzolghadr opened this issue Aug 1, 2015 · 2 comments

Comments

@aidinzolghadr
Copy link

Hi,
There are parts in the my game that when my CC2D character that is not simulated by physics needs to for example push a physically simulated object. What's the best approach to do so?

Thanks

@prime31
Copy link
Owner

prime31 commented Aug 1, 2015

You would do this the same exact way as if you were using the standard CharacterController: just apply forced to any physics objects that you want to interact with.

Mike

On Aug 1, 2015, at 3:12 AM, Aidin Zolghadr notifications@github.com wrote:

Hi,
There are parts in the my game that when my CC2D character that is not simulated by physics needs to for example push a physically simulated object. What's the best approach to do so?

Thanks


Reply to this email directly or view it on GitHub.

@prime31 prime31 closed this as completed Oct 10, 2016
@aidinzolghadr
Copy link
Author

Would you please elaborate more on this? For example there are sprites with attached rigibody2D's and boxCollider2D's that I want my player to be able to push around. If I put that object to Platform layer, it will be immovable or I'm missing something here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants