Forum Replies Created
-
AuthorPosts
-
2020-12-01 at 5:03 am in reply to: how can i convert polarAngle, aziumthalAngle, and distance to vector3. #36116eatdesignloveParticipant
Thank to you i figured it out!
–
const vector3 = new v3d.Vector3();
const position = vector3.setFromSphericalCoords(
distance,
controls.getPolarAngle(),
controls.getAzimuthalAngle()
);2020-11-26 at 4:14 pm in reply to: how can i convert polarAngle, aziumthalAngle, and distance to vector3. #35993eatdesignloveParticipantHi,
As you can see the screenshot i attached, in the document it shows that i need to get vector3 value for tweening.
Unfortunately, I’m not familiar with the scalar value.😢
{x: number, y: number, z: number} <- Is that scalar value?
For your understanding, I write down what i want to do with the position variable’s value.
<input id=”polarAngle”>
<input id=”aziumthalAngle”>
<input id=”distance”>
<button onclick=”tweenViewClick”>Tween Viewer<button>function tweenViewClick() {
const polar = document.getElementById(‘polarAngle’);
const aziumthalAngle = document.getElementById(‘aziumthalAngle’);
const distance = document.getElementById(‘distance’);// … some logic … how to..
const postion = {x:.. , y:.., z:.. } // Calculated polarAngle, aziumthalAngle, distance.
app.controls.tween(postion, targetPosition);
}I want to know x, y, and z value by calculating polarAngle, aziumthalAngle, and distance…😢
Attachments:
You must be logged in to view attached files.2020-10-22 at 2:05 am in reply to: version 3.2 -> 3.3 or 3.4 Migration Issue (app.materials array -> object) #34477eatdesignloveParticipantThank you, Ivan!!
-
AuthorPosts