コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        xPos = transform.position.x;
        yPos = transform.position.y;
        zPos = transform.position.z;
        mass = 2;

        PhysicsDLLAccess.AddParticle3D(ref mass, ref xPos, ref yPos, ref zPos);
    }
コード例 #2
0
 // Start is called before the first frame update
 void Awake()
 {
     PhysicsDLLAccess.CreatePhysicsWorld();
 }
コード例 #3
0
 // Update is called once per frame
 void Update()
 {
     PhysicsDLLAccess.UpdatePhysicsWorld(Time.deltaTime);
 }
コード例 #4
0
 // Update is called once per frame
 void Update()
 {
     PhysicsDLLAccess.AddForce(5.0f, 0.0f, 0.0f);
     transform.position = new Vector3(xPos, yPos, zPos);
 }