Commit Graph

58 Commits

Author SHA1 Message Date
ousttrue
5b47fab89f SpringBonePaused to IsSpringBoneEnabled. invert boolean 2024-07-18 18:46:25 +09:00
ousttrue
af9e18c09c add BlittableExternalData.Paused 2024-07-18 18:46:25 +09:00
ousttrue
4ffb659992 impl capsule inside 2024-06-06 14:24:43 +09:00
ousttrue
24985e21a7 CapsuleInside gizmo, import, export 2024-06-06 14:09:32 +09:00
ousttrue
94e732d83a impl plane collider 2024-06-06 13:45:39 +09:00
ousttrue
a71aa9fd8f import 2024-06-05 15:54:03 +09:00
ousttrue
ffaf60e4de
Merge pull request #2292 from LanternaBlender/master
Capsuleの当たり判定を修正 #2291
2024-05-30 17:19:34 +09:00
Admin
4f1872d5f0 Capsuleの当たり判定を修正 #2291 2024-05-15 23:36:05 +09:00
Isamu Mogi
698a4dbc8e Unity2022.2.4以下と2021.3.17以下でFindObjectBy系APIが存在しないのに対応
FindObjectsBy系のAPIは、UniVRMがサポートしているUnityのうち、次の範囲のバージョンには存在しない。

- 2021.3.0~2021.3.17
- 2022.1.0~2022.1.24
- 2022.2.0~2022.2.4

そのため、該当するバージョンのUnityではコンパイルエラーが発生していた。UNITY_2022_3_OR_NEWERで分岐することで、旧APIと新APIを安全に選択するようにした。

厳密にはUNITY_2022_2_5_OR_NEWERを用いたいが、そのようなシンボルは存在していなかった。
2024-05-14 20:15:56 +09:00
Isamu Mogi
018aec1fab Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応
Unity 2023.1以降のバージョンでUnityEngine.Object.FindObjectsOfType系APIがObsoleteになり、次の警告が発生していました。

```
Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs(250,24): warning CS0618: 'Object.FindObjectOfType<T>()' is obsolete: 'Object.FindObjectOfType has been deprecated. Use Object.FindFirstObjectByType instead or if finding any instance is acceptable the faster Object.FindAnyObjectByType'
Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs(208,31): warning CS0618: 'Object.FindObjectsOfType<T>()' is obsolete: 'Object.FindObjectsOfType has been deprecated. Use Object.FindObjectsByType instead which lets you decide whether you need the results sorted or not.  FindObjectsOfType sorts the results by InstanceID but if you do not need this using FindObjectSortMode.None is considerably faster.'
```

代わりにFindObjectsBy系APIを使うようにしました。これはUnity 2021.3にも存在しているので、そのまま使うことができました。

FindObjectOfType()とFindFirstObjectByType()の違いに関してはドキュメントからは読み取れませんでしたが、
Unity-Technologiesgが公開しているUnity 6000のソースコードを見る限り、動作は同一に見えるためそのまま置き換えました。

https://github.com/Unity-Technologies/UnityCsReference/blob/6000.0/Runtime/Export/Scripting/UnityEngineObject.bindings.cs#L586-L602
2024-05-08 03:48:25 +09:00
ousttrue
6036e61f07 ロジックバグ。normalize 必用ぽい 2024-02-29 13:44:54 +09:00
T-Kuhn
b8445abf1f Changed FastSpringBoneService ExecutionOrder to make sure FastSpringBoneService executes after Vrm10Instance 2023-01-25 12:56:15 +09:00
Masataka SUMI
da66cf768f Set externalData as initial value. 2022-11-04 21:38:58 +09:00
0b5vr
76ebf0ef73
fix: Fix outdated exception message
`UpdateTypes` は `LateUpdate` か `Manual` しかなく、 `None` はこれは `Manual` の変更忘れでしょうか?
2022-10-26 18:48:02 +09:00
ousttrue
b1a545f987 元のスタイルに戻し 2022-10-26 13:31:19 +09:00
ousttrue
f17bac5b03 FastSpringBoneService.ManualUpdate に deltaTime 引き数を追加 2022-10-25 21:52:19 +09:00
ousttrue
11b6689c01 local 変数の使いまわしやめ 2022-10-25 21:50:59 +09:00
ousttrue
e1e4bfde78 FastSpringBoneService manual update 2022-10-24 19:12:52 +09:00
notargs
46e3ec70d5 外力をキャラクターごとに設定するように変更 2022-10-20 15:31:59 +09:00
notargs
a60d199559 不要なデータを削除 2022-10-18 16:37:30 +09:00
notargs
dc3b6afd8c SpringBoneに対してグローバルで外力を渡すインターフェースを実装する 2022-10-18 13:16:33 +09:00
notargs
d66fc2498e FastSpringBoneに対し、末端ボーンへの考慮を追加するオプションを追加しました 2022-09-16 18:30:09 +09:00
amamagi
b8ae94ddea use cached local rotation for spring bone calculation 2022-06-27 13:26:36 +09:00
amamagi
63eb58d6b7 Revert "Vrm10Runtime.ReconstructSpringBoneを呼んだ時点のSpringBoneの形状を維持する方向に剛性が働いてしまう問題を修正"
This reverts commit 904b82c114.
2022-06-27 10:43:21 +09:00
amamagi
904b82c114 Vrm10Runtime.ReconstructSpringBoneを呼んだ時点のSpringBoneの形状を維持する方向に剛性が働いてしまう問題を修正 2022-06-22 19:46:18 +09:00
amamagi
48aec5bfe5 fix ArgumentOutOfRangeException 2022-06-06 16:03:15 +09:00
amamagi
d2006caa4e remove mathematics 2022-05-31 15:37:21 +09:00
amamagi
9aaea6e6a1 refactor fast spring bone 2022-05-30 19:05:17 +09:00
amamagi
7c0df2aa1e small change 2022-05-30 18:22:08 +09:00
amamagi
d4ae062ae4 apply collider scale 2022-05-30 18:09:11 +09:00
amamagi
f453c0ea6a set init rotation 2022-05-30 17:20:53 +09:00
amamagi
0a50881fa5 add collider idx 2022-05-30 16:03:58 +09:00
amamagi
e3d55943b6 fix reconstruct method 2022-05-27 20:45:31 +09:00
amamagi
59ea12f880 add disposed check 2022-05-18 19:55:29 +09:00
notargs
61846b9bb3 ReconstructBuffers時に、揺れものの状態がリセットされる問題を修正しました 2022-04-22 19:04:16 +09:00
notargs
700f79a700 Fix FastSpringBoneService initializing flow for #1567 2022-04-06 17:49:10 +09:00
notargs
e2a2c073c9 Fix springbone center logic 2022-02-21 18:25:00 +09:00
notargs
0316352e8c Fix ReconstructSpringBone default rotation 2021-10-26 18:43:34 +09:00
notargs
698e7c0f15 不要なキャストを削除 2021-10-22 15:30:26 +09:00
notargs
c68be7c59f Fix comment 2021-10-22 15:25:19 +09:00
notargs
c215022153 Unuse mathf in burst 2021-10-22 15:24:34 +09:00
notargs
c350fa2808 Fix format 2021-10-19 17:04:35 +09:00
notargs
1e4b054790 Normalize quaternion on update headTransform.rotation 2021-10-19 16:18:17 +09:00
notargs
55d8bcbd1c rm fastSpringBoneScope 2021-10-06 14:56:50 +09:00
notargs
88d61d32a0 rm unused property 2021-10-06 14:53:39 +09:00
notargs
367b2552e3 Add comment 2021-10-06 14:47:39 +09:00
notargs
39e98be218 Improve buffer construction performance 2021-10-06 14:45:38 +09:00
notargs
3ba8b65718 Rename system -> service 2021-10-05 18:56:04 +09:00
notargs
82e4d99e1b Add FastSpringBoneBufferCombiner 2021-10-05 18:51:35 +09:00
notargs
d185452f48 Use ENABLE_SPRINGBONE_BURST definition 2021-10-05 18:44:30 +09:00