OverLapping Object to Not Collide

Post Reply
EliasNemer
Posts: 15
Joined: Mon Dec 09, 2019 1:10 pm

OverLapping Object to Not Collide

Post by EliasNemer »

hello,

i am currently working on a project(billiard Simulation) and am using Bullet Physics.

one of the features in my project is a simulation to show trajectories of the Cue Ball and the target ball.

i have tried using the offlineSim that is available in the bullet library for unity3d. but it seemed to be to CPU intensive since it is constantly creating and destroying worlds and adding rigidbodies..

thus i decided to use the same physics world on start up and overlay the two identical set of balls. (obviously the balls used for trajectory are invisible and do not collide with the visible ones) but they both collide with the other objects in the same manner..

my issue is that i am not being able to find the correct set of (collisionFlags, CollisionMask, and CollisionGroupsIBelogTo) to create this effect..

if anyone can help. it would be much appreciated..

Thanks.
Post Reply