jonlab / NewAtlantis

http://www.newatlantis.world/
9 stars 6 forks source link

Can cloned objects start with the orientation of the avatar? #58

Open vitagrrl opened 7 years ago

vitagrrl commented 7 years ago

Trying to make a cloneable object that will "throw" like the cubes. We can kind of do it by applying an initial force when the cloned object is instantiated - but the initial force vector is always (0,0,1) in world space. I can make it apply the force using the rotation of the object, but I can't seem to make the cloned object start off with the orientation of the user.

jonlab commented 7 years ago

actually, this feature was already implemented but for some reason the code handling the rotation of the cloned objects on the clients was commented (NANetwork::CloneObject(), line 201). I am looking at reenabling it.

jonlab commented 7 years ago

question is : are we enabling a throw logic for any cloned object ? Or maybe we could implement a charge and launch logic on the cloner tool : you maintain action to charge and when you release a forward force is applied (the longer you maintain, the stronger the force is).

jonlab commented 7 years ago

Orientation is fixed.

jonlab commented 7 years ago

Ben fixed it too but I didn't see it :-) At least our fix is exactly the same :-)