18 lines
400 B
C#
18 lines
400 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class PlacementMatching : RigidbodyMatchingBase
|
|||
|
{
|
|||
|
[Header("Placement")]
|
|||
|
public Vector3 TargetPosition;
|
|||
|
public Vector3 TargetRotation;
|
|||
|
|
|||
|
protected override void FixedUpdate()
|
|||
|
{
|
|||
|
SetTargetPlacement(TargetPosition, Quaternion.Euler(TargetRotation));
|
|||
|
|
|||
|
base.FixedUpdate();
|
|||
|
}
|
|||
|
}
|