Questions tagged [rapier-2d]

4 questions
4
votes
2 answers

Why are Bevy's Trait bounds not satisfied for the Rapier physics plugin?

I've been trying to run this minimal example to get Rapier's physics working with Bevy: use bevy::prelude::*; use bevy_rapier2d::prelude::*; fn main() { App::new() .add_plugins(DefaultPlugins) …
TechPerson
  • 320
  • 1
  • 8
2
votes
2 answers

How to bind non-UI entity with UI entity in Bevy

Description I'm trying to implement trigger logic when the player faced the trigger I should remove the UI element from the screen. Spawning the trigger point /// Create a trigger point and when the user faced with /// it I'll mark the tutorial as…
MadMed677
  • 63
  • 3
0
votes
1 answer

Adding collider to floor on bevy and bevy_rapier2d

I try to add a collider to the floor of my 2d game: fn setup( mut commands: Commands, asset_server: Res, ) { let vertices = [ Vec2::new(-WINDOW_WIDTH, 0.0), Vec2::new(WINDOW_WIDTH, 0.0), ]; commands …
Adri HM
  • 2,314
  • 2
  • 17
  • 30
0
votes
0 answers

Creating new rapier2D world in other CPU threads. Cannot read properties of undefined (reading 'rawintegrationparameters_new')

I'm trying to create a new physic world (by @dimforge/rapier2d-compat physic engine) in other CPU threads with Worker. but it throws this error : TypeError [Error]: Cannot read properties of undefined (reading 'rawintegrationparameters_new') at…