question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

issue with generating colliders

See original GitHub issue

Hello I’m using CuboidCollider for generating a limitless flat plane problem is visible in image below

image

first three block on left have collider and other three on right have no any collider code for each of them is same and don’t now why it’s ignoring that part and when I refresh the page it keeps ignoring that three! I’ll attach the Code here too <RigidBody colliders={false} type="fixed"> <Center position-y={-2}> <mesh material={props.material} receiveShadow scale={[props.scale, 4, props.scale]} > <boxGeometry /> </mesh> </Center> <CuboidCollider args={[1, 1, 1]} scale={[props.scale / 2, 2, props.scale / 2]} position={[0, -2, 0]} /> </RigidBody>

is there any way to solve this issue? Thank you

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sina-developercommented, Nov 26, 2022

ok I’ll try that I’ll let you know the result thanks

0reactions
wiledalcommented, Dec 15, 2022

@trebeljahr It does sound like the slow initiation of the meshes might be the culprit in that instance.

I would expect this scenario to cause that:

<RigidBody>
  <DynamicallyLoadedMesh />
</RigidBody>

Since the RigidBody is initiated with no mesh inside, and it won’t re-initiate after the mesh has loaded. A workaround could be to use suspense, and wrap the entire thing.

<Suspense>
  <RigidBody>
    <SuspendedDynamicallyLoadedMesh />
  </RigidBody>
</Suspense>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Joins between mesh colliders generate physics issues(video)
Hi guys! It's a Simple 3d project in 2020.3.26f1 with no additional project settings setup The scene is composed by: A few static...
Read more >
Unity Mesh Collider Fix - YouTube
In this video I am going to show you, how to fix a problem I and many other people have faced a lot,...
Read more >
Colliders not generating above Y 59 · Issue #71 - GitHub
When trying to move around with a physics character in one of the example scenes, I noticed there were no colliders for chunks...
Read more >
Introduction to collision - Unity - Manual
Primitive colliders do not work correctly with shear transforms. If you use a combination of rotations and non-uniform scales in the Transform hierarchy...
Read more >
Generating colliders on characters - Flipside XR
Scale issues. If you have issues where the character is not loading correctly in Flipside or the colliders being generated don't match the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found