Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DigitalPowers · Apr 19, 2011 at 01:12 AM · proceduralmeshcolliderfallingwavesfalling-through-floor

Prevent Fallthrough with Procedural Mesh and Collider

I have a plane and I am modifying the mesh for the plane at runtime (using a sin wave) trying to make it look like waves. I also have a mesh collider on the game object and I am setting its mesh every time I change the plane's mesh.

Further I do know about setting the colliders mesh to null before reassigning it. So that isn't a problem. The collider mesh is updating.

Ok so what I am suffering from is that when the mesh and collider get updated, if they move up they might just move right on into the colliders i have on top of the plane. If they do any object that is no longer completely above the collider just falls through.

Obviously this makes good sense, I am modifying the collider and the physics engine cant make collisions happen when its collider just magically changes (from its point of view).

So my question is, What can I do to prevent objects from falling through? Cheap hacks welcome, i am not looking for a lot of realism here just want to keep objects on top of my mesh. (Shooting for ocean waves looking stuff but don't plan on doing boyancy since i think that would be expensive).

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AngryOldMan · Apr 19, 2011 at 02:05 AM 0
Share

if you dont want boyancy could you just ignore the wave mesh altogether an have another invisible mesh that the boat moves on?

avatar image DigitalPowers · Apr 19, 2011 at 03:34 AM 0
Share

I am not sure how that would help, it seems like I would have to deform that mesh as well in order to have the boat move close to the waves. $$anonymous$$aybe I am missing something though, not that good at 3d collider stuff in general :)

avatar image DigitalPowers · Apr 19, 2011 at 03:35 AM 0
Share

Also I am happy to try buoyancy, just worried that it will be too costly, I am not shooting for real looking physics just want to keep the boat afloat. If I were to do buoyancy is there an easy way to tell that the boat is below the surface of the water (since the water is changing)

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Convex Mesh Collider on Procedurally generated mesh does not conform.. 2 Answers

Mesh collider on procedurally generated mesh 1 Answer

[bug?] Unity deleting MeshCollider's baked data 0 Answers

Crouching and falling through floor 0 Answers

Falling through floor glitch 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges