Skip to content

Conversation

@chakibchemso
Copy link

Objective

  • fix cylinder not spawning correctly.

Solution

  • add: Transform::from_xyz(0.0, 0.0, 0.0),

fix cylinder not spawning correctly.
@chakibchemso
Copy link
Author

  • This was confusing, after tinkering a bit i found that without a transform explicitly attached, the cylinder doesnt appear. but still, spawning a mesh without physics components appear without a transform.

before:

image

after:

image

Collider::cylinder(4.0, 0.1),
Mesh3d(meshes.add(Cylinder::new(4.0, 0.1))),
MeshMaterial3d(materials.add(Color::WHITE)),
Transform::from_xyz(0.0, 0.0, 0.0),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems weird. Mesh3d already has transform as a required component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants