Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The friction property is name collision_friction in TileMap #18190

Closed
Chais opened this issue Apr 14, 2018 · 1 comment
Closed

The friction property is name collision_friction in TileMap #18190

Chais opened this issue Apr 14, 2018 · 1 comment

Comments

@Chais
Copy link

Chais commented Apr 14, 2018

Godot version:
master (3a5b25d as of writing this)

OS/device including version:
Linux 4.15.15

Issue description:
The friction property is named collision_friction in the TileMap class. But only there. RigidBody2D and StaticBody2D for example just use friction. This necessitates unsightly constructions like this:

var friction = 0.8
if collision:
	if collision.collider.name == "TileMap":
		friction = collision.collider.collision_friction
	else:
		friction = collision.collider.friction

Or any other method of determining the type of the collider.

@akien-mga
Copy link
Member

This is now kept track of in #16863, so closing.

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

No branches or pull requests

2 participants