27-10-2021, 10:52 AM
my code is
this script on the Obi Solver
but result always (0.0,0.0,0.0)
but rope is moving;
Did i make a mistake?
Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Obi;
public class Test : MonoBehaviour
{
ObiSolver solver;
void Start()
{
solver = transform.GetComponent<ObiSolver>();
}
void Update()
{
Debug.Log(solver.transform.position);
}
}
but result always (0.0,0.0,0.0)
but rope is moving;
Did i make a mistake?