Friday, November 8, 2024
HomeGame DevelopmentRoast me, however... I obtained issues with my terrain - Cocos Creator

Roast me, however… I obtained issues with my terrain – Cocos Creator


Hey everybody!

I’m new and self educated. I’m making an attempt to make a tray to drop from the sky over the bottom.

The issue is that it goes past the bottom (terrain) and goes although it with out stopping.

I’ve set RigidBody and PlaneCollider for each the terrain and the tray

How can I make it cease on the bottom? and the way can I modify the pores and skin of the terrain? I’ve tried inserting any sort of png/textures and can’t change the chess-like structure.

Thanks!


you want use TerrainCollider.

Hey, Koei! Thanks for the reply!

I took your recipy and added Terrain Collider to the terrain

the tray nonetheless has its airplane collider and inflexible physique in place

however now it is going to be nonetheless and never fall into the bottom

observe that I already turned on the Use Gravity characteristic

ought to I add some other part?

Sorry, I don’t know what you need to do subsequent.

simply to make the tray drop all the way down to the ground

Possibly you want BoxCollider as an alternative of PlaneCollider

It is best to check out a tutorial I wrote for a primary particular person digicam. It explains find out how to set the physics.

Additionally, when you want to use your personal mannequin and never the terrain. Use mesh collider as an alternative of terrain collider. It’s important to choose the mesh within the checklist which shall be named the identical because the mannequin in blender, which is likely to be dice when you didn’t rename it.



1 Like

BoxCollider on terrain? I attempted that, the tray falls down, however goes by way of the terrain, doesn’t cease on the ground

Good tutorial, I’ll strive it. I attempted utilizing meshCollider, however nonetheless the tray falls by way of the ground. Nonetheless checking for options.

UPDATE

That is how I set my Terrain (I known as it “Piso”)

I checked some tutorials on-line and on this discussion board, and that is the advisable setup for terrain.

However nonetheless:

The tray drops past the bottom.

How can I make the ground arduous? am I lacking one thing?

It’s important to select the appropriate mesh for the mesh collider as there are various meshs to select from. It’ll be named what ever the mannequin is known as in blender. You’ll understand it’s the appropriate one as it can spotlight the fashions edges in inexperienced.

I additionally do suggest following the tutorial first as you’ll see it working and be capable of adapt it to work together with your mannequin from what i’ve mentioned.

ought to I add some properties to Collision.terran asset?

I modified as indicated, however the challenge persists…

Any mesh ought to work. Like I mentioned as a result of checklist of the meshs you get to select from (this consists of different fashions within the scene, perhaps even undertaking). It may well appear that they’re simply generic Dice or Airplane and many others however when you begin biking by way of you will note the mesh highlighted in inexperienced. Should you didn’t change your fashions identify in blender it could be named Dice or Airplane relying on the form your mannequin began as. Which is what threw me off atleast to find the appropriate mesh at first and pondering mesh collider didn’t work as anticipated.

I believe the terrain is about up appropriately however now it’s the collider for the tray that is likely to be the difficulty.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments