Comments (4)
Ok, I updated to the latest version. I took the liberty of rewriting the class in jS ES6.
Everything works with the update.
Thanks Ssatguru
from babylonjs-charactercontroller.
Hi @dad72 ,
In mode 0 the camera controls the rotation of the avatar and is also controlled by rotation of avatar.
Try mode 1 and see what happens.
To Change mode
from babylonjs-charactercontroller.
I don't use isometric. Mode 0 is what I need.
I'm talking about the rotation of the avatar when loading the game which always looks in the Z position. (the camera is well behind the avatar in the third person.)
If I save the player's position and rotation in a database before he leaves the game and reloads the game, his rotation in Y is not taken into account (the position is taken into account, but not the rotation), the avatar always looks in Z regardless of the rotation values saved.
If I rotate the avatar to look south or west, when the game loads it will always look north by default.
I tried adding the rotation values in the updateTargetValue() function and that fixed the problem, so I guess something is missing here.
I also tried to remove this function in the call of the Start() function and that also corrected the problem.
I think something is missing in updateTargetValue()
Thanks
from babylonjs-charactercontroller.
Mode 0 also has
setTurningOff(true/false);
So turn it off , change av rotation, turn it on ?
Further
4.4.3 alpha has following methods to help save and load the Character Controller settings
getActionMap()
getSettings()
and
setActionMap()
setSettings()
See get , set settings
Try and let me know if that helps
from babylonjs-charactercontroller.
Related Issues (20)
- pressing shift should make walkback ,strafeLeft/Right, turnLeft/Right faster HOT 1
- BabylonJS ES6 Module support HOT 6
- Avatar reflection? HOT 1
- testAnimationGroup from GLB not working HOT 7
- support babylon v5 HOT 4
- How to destroy? HOT 3
- What about pull requests awaiting review ? HOT 3
- PauseAnims() doesn't pause HOT 4
- Use characterController for secondary players HOT 9
- First person not working with glb avatars HOT 3
- moveWithCollision and calcMovePOV jitter HOT 3
- There was jitter when performing the Walkback and trunRight operations
- Work with Havok
- How can I change brightness of the avatars? HOT 2
- use raycast to detect slope,steps and ground
- Using Character Controller on Server HOT 1
- Problem with character mesh? controller?
- How can I copy an avatar and synchronize remotely?
- How cam I programmatically force an avatar to fallFall? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babylonjs-charactercontroller.