generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Can you get the verlet integration cloths to collide?

Previous Thread :: Next Thread 
badfitz99 is not online. badfitz99
Joined: 01 May 2010
Total Posts: 5854
14 Jun 2014 05:20 PM
Is it possible? With all of the cloth physics (capes etc), they don't seem to collide with normal bricks, only players

u wot tifany? (ง ͠° ͟ل͜ ͡°)ง ill gnaw ur arm off hagrid!
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
14 Jun 2014 06:16 PM
Yes. You can use getPartsInRegion3 as a broadphase and then push the cloth vertices out of any blocks they are inside. Would let you make a rly long cape and drag it along the ground o3o

eg. 10*50 cape is 500 bricks (assuming bricks are at vertices and not between them for simplicity) and 500 vertices

Assuming CFraming all of those is not too laggy, you need 500*actualBricks checks to do collisions with environment.

Lua should handle that just fine, you could refine environment bricks down to like under 10 most of the time (ground, big objects nearby)

Then clamp the vertex vector3 positions outside the bricks (simple vector maths). The forces should be solved BEFORE that step so at the end all vertices are outside bricks.

I assume you dont apply any forces to the vertices from environment tho, i dont know if it looks bad without doing that.

You could optimize the cape by doing it row by row and merging bricks that are in nearly the same line, which is true for most of the cape bricks.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image