Jump to content


Photo

tree collider question


Best Answer bortimus , 25 March 2019 - 10:36 PM

As far as I know your best bet is to approximate the shape of the tree using capsule colliders set to wood for the trunk/s and sphere colliders set to none for the leaves. 

 

For consistency I always use the last wood physics material from the PP/CourseForge/Content... folder but I believe any of the wood physics materials will work.  

 

Do not use leaves for anything.  You will get strange results.  

 

Yes this is counterintuitive but PP programmed it this way and it works if you follow these settings.   

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 jspirate

jspirate

    Advanced Member

  • Members
  • PipPipPip
  • 487 posts

Posted 25 March 2019 - 09:46 PM

The colliders offered in Course Forge for trees appear to be:

- wood

- wood

- leaves

 

I can't seem to add a reasonable collider to a non-speedtree tree.  Either I get a solid wooden shape (mimicking the Unity collider shape selection) or if I use the leaves, its almost like not hitting the tree at all.

 

I would like to add a collider that reduces ball flight speed or deflects slightly.  This seems like it should be an easy task, but the ease of it is escaping me???

 

 

 


i7-8700K
GIGABYTE Z390 AORUS Pro
64 GB DDR4 3200
MSI GeForce GTX 1080 Ti Gaming X
LG 32GK850G
Win 10 Home Premium on 1TB SSD

 

Courses:

Bradford Links - released

Ironwood - released

Cypress Landing - released (also available in a 3DG version)

Crow's Nest - released


#2 bortimus

bortimus

    Advanced Member

  • Members
  • PipPipPip
  • 1,234 posts

Posted 25 March 2019 - 10:36 PM   Best Answer

As far as I know your best bet is to approximate the shape of the tree using capsule colliders set to wood for the trunk/s and sphere colliders set to none for the leaves. 

 

For consistency I always use the last wood physics material from the PP/CourseForge/Content... folder but I believe any of the wood physics materials will work.  

 

Do not use leaves for anything.  You will get strange results.  

 

Yes this is counterintuitive but PP programmed it this way and it works if you follow these settings.   


  • jspirate likes this

#3 jspirate

jspirate

    Advanced Member

  • Members
  • PipPipPip
  • 487 posts

Posted 25 March 2019 - 10:42 PM

As far as I know your best bet is to approximate the shape of the tree using capsule colliders set to wood for the trunk/s and sphere colliders set to none for the leaves. 

 

 

Hmmm, I tried everything but "none." 

I will give that a try, thanks.


i7-8700K
GIGABYTE Z390 AORUS Pro
64 GB DDR4 3200
MSI GeForce GTX 1080 Ti Gaming X
LG 32GK850G
Win 10 Home Premium on 1TB SSD

 

Courses:

Bradford Links - released

Ironwood - released

Cypress Landing - released (also available in a 3DG version)

Crow's Nest - released


#4 Stingreye

Stingreye

    Advanced Member

  • Members
  • PipPipPip
  • 341 posts
  • LocationSouthern California

Posted 25 March 2019 - 11:15 PM

I thought I read here somewhere that all cylinders are interpreted as solid, and all spheres are more like leaves?  It seems like trees ignore those settings.



#5 jspirate

jspirate

    Advanced Member

  • Members
  • PipPipPip
  • 487 posts

Posted 26 March 2019 - 01:26 AM

OK... I changed my spheres to "none" and it does appear to work more like I wanted.  Unfortunately, before asking the question I made all my spheres small.  Small spheres assigned "wood" acted more like a ball making a glancing blow as opposed to a brick wall effect.  Sooooo, I need to go back and make bigger spheres so that contact with the sphere is more likely.

 

Its all good though because now I know how to make it work as I hoped.

 

Thanks


i7-8700K
GIGABYTE Z390 AORUS Pro
64 GB DDR4 3200
MSI GeForce GTX 1080 Ti Gaming X
LG 32GK850G
Win 10 Home Premium on 1TB SSD

 

Courses:

Bradford Links - released

Ironwood - released

Cypress Landing - released (also available in a 3DG version)

Crow's Nest - released





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users