[RESOLVED] BetterCharacterControl change friction

Hi, I would simply like to change the player’s attrition.
I read on another question that this should work,

betterCharacterControl.getRigidBody()

but by me there is no such method …
(sorry bad english)

1 Like

There are several physics libraries for JMonkeyEngine.

getRigidBody() is a method that exists in the Minie library, but not in the jme3-jbullet library. Based on what you’ve told us, I suspect you’re using jme3-jbullet.

I don’t know, I don’t know which libraries BetterCharacterControl uses to manage physics …

If you are using the jme sdk, you most likely would be using jme-jbullet

okay, and is there a way to change the friction at BetterCharacterControl?

well, go to Releases · jMonkeyEngine/jmonkeyengine · GitHub, download the latest, remove jbullet from your libraries and add minie(from the zip) as a library

btw im assuming you are using the sdk

yes i’m using the sdk

i broken my project i think
(build work) wheni exec:

mag 10, 2022 9:55:31 AM com.jme3.input.InputManager addMapping
#
# A fatal error has been detected by the Java Runtime Environment:
#
AVVERTENZA: Attempted to add mapping "FLYCAM_Down" twice to trigger.
#  SIGSEGV (0xb) at pc=0x00007f356096cb9e, pid=44609, tid=44652
#
# JRE version: OpenJDK Runtime Environment (11.0.6+10) (build 11.0.6+10)
mag 10, 2022 9:55:31 AM com.jme3.input.InputManager addMapping
# Java VM: OpenJDK 64-Bit Server VM (11.0.6+10, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
AVVERTENZA: Attempted to add mapping "FLYCAM_Down" twice to trigger.
# v  ~BufferBlob::jni_fast_GetFloatField
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/gattolfo/Documenti/java/Jmonki/JumpSus/core.44609)
#
# An error report file with more information is saved as:
# /home/gattolfo/Documenti/java/Jmonki/JumpSus/hs_err_pid44609.log
Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled
#
# If you would like to submit a bug report, please visit:
#   https://github.com/AdoptOpenJDK/openjdk-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/home/gattolfo/Documenti/java/Jmonki/JumpSus/nbproject/build-impl.xml:1321: The following error occurred while executing this line:
/home/gattolfo/Documenti/java/Jmonki/JumpSus/nbproject/build-impl.xml:959: Java returned: 134
BUILD FAILED (total time: 6 seconds)

Okay, now work i dont know but the project is broken (i made new one coping the class)