≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Problem loading Copperlicht engine
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b][/b] wrote: Further to my question above, I also have one more which is puzzling me By default I have a player in the scene named "PlayerMesh" which is the player himself. Now, when I make a clone of this PlayerMesh, using the API, and the following code: [code] createPlayer: function(data) { var _this = this; // console.log(this._player); var mesh = this._player.createClone( _this._scene.getRootSceneNode() ); mesh.Name = 'OtherPlayerMesh' + data.playerData.characterId; mesh.Data = data; mesh.Pos.X = data.playerData.positionX; mesh.Pos.Y = data.playerData.positionY; mesh.Pos.Z = data.playerData.positionZ; mesh.Rot.Y = 0; mesh.Rot.Y = data.playerData.positionY; mesh.Rot.Z = 0; } [/code] I see two people in the scene which is correct. However when I move my character using the WASD controls, this newly created mesh also moved around - despite the fact that I gave it a different name. What could be the problem? I think maybe I need to change the Id not just the Name, or maybe I'm changing it too late[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact