-
Notifications
You must be signed in to change notification settings - Fork 176
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
Does it make sense to use the GameEngine between other components like View #46
Comments
Hi @ihsanktmr, You can definitely use the between and amongst other components. We did some updates to this functionality recently: #38 That said, I would first make sure your game works well as the root, fullscreen component and then slowly add sibling components as required. Also, the GameEngine accepts a It also looks like you are creating your entities in the |
I removed I've checked And I am not able see balls which should have be created at the beginning and should have fall to the ground. Those 3 balls are invisible I do not know why. This is my Ball renderer it's just display component here it is;
|
Plus, I am not able set any borders to the |
Sounds like there is a lot happening here @ihsanktmr I'm not too familiar with MatterJS, but have you had a chance to look at some of the examples here (especially the rigid-bodies example): https://github.com/bberak/react-native-game-engine-handbook/blob/master/app/physics/rigid-bodies/ They're quite old, and probably not coded well, but should work. Perhaps you can try to copy the rigid-bodies example and slowly modify it line by line to suit your needs - making sure it works at every step of the way. Also, don't be too quick to dismiss |
Yes thats actually how i made the whole progress exacly I started to doing it by modifying rigid-bodies example.
I am not really familiar with In addition, so is it possible to add gravity to objects without using |
Hi @ihsanktmr, At what point did your progress deviatate from the intented requirements? Are you able to go to a spot or commit where it was working then slowly go from there?
Here is a simple physics system you can integrate into your own project: https://github.com/bberak/react-native-game-engine-template/blob/master/src/game/systems/basic-physics.js I can probably give you a simple usage example if required - but if you're comfortable with |
When I am trying to add
</GameEngine>
between other</View>
components however its sensibility decreases a lot and also it definitely becomes unable to use. When I define objects for to appear at the beginning of render. They scattering out and sort of teleporting through other components they even can pass through other objects like they never stops.Below is how I am trying to use the
<GameEngine>
componentI want to ask that if I should only use
<GameEngine>
as the most upper JSX component ?Thanks.
The text was updated successfully, but these errors were encountered: