I test performance of physics with new beta 12.
My test is 500 ribigbody kinematic with sphere trigger collider and one child with a sphere trigger collider.
Rigidbody can only detect child because of layer.
So after the first frame, nobody moving. And physics continue to take huge time avr 8ms.
So bug or normal ?
And it’s worse of course when I move all gameobject ( I use DOTween for moving GO)
What should move in your first test, if there are only kinematic rigidbodies and trigger collider? There is nothing physics should do in that case, kinematic rigidbodies are not affected by physics and trigger collider won’t collide with anything, they are just “trigger”, for example if you want to have a box as a room, to trigger a function when the camera enters the room.
And trigger collide with rigidbody trigger, all my game works like that.
using UnityEngine;
using System.Collections;
using DG.Tweening;
public class fffffffff : MonoBehaviour
{
public bool me;
void Awake()
{
if (!init)
{
init = true;
for (int i = 0; i < 500; i++)
{
Instantiate(gameObject, Random.insideUnitSphere * 60, Quaternion.identity);
}
Destroy(gameObject);
}
else
{
//desativate this line for desactivate movement
GetComponent<Rigidbody>().DOMove(Random.insideUnitSphere * 60, 15F, true).SetLoops(-1, LoopType.Yoyo).Play();
}
}
//for force physics to call this
void OnTriggerEnter(Collider c)
{
}
void OnTriggerExit(Collider c)
{
}
private static bool init = false;
}
Yup, same problem here, would be nice if someone from physx developers commented this, because for looks like in some situations we have worse physx performance than in unity4. Anyone knows someone from nvidia physx? Because Im afraid Unity guys can’t help us with this.
Actually unity can and does help with this. Unity has a direct line to nvidia, and a direct contact with the engineers on physx, so they are by far the best people to contact with this issue, and Unity has even said they will do so if given the required data. Report a bug with this test.
Because links to all your other cases are at the bottom of that page, and someone can easily look there and if you have any links to source code or projects for repos they can download it.