Andrei Vaduva
Andrei Vaduva
NNormal
Created by gubebra on 6/17/2024 in #🤝ask-a-question
Experiencing issues with idle players
From what i researched, normcore disconnects idle players after 60s of inactivity (locking the device, etc.. basically no network updates) and i think the server closes after 30s of no online users. I don't think this is configurable
9 replies
NNormal
Created by cryptomax on 6/6/2024 in #💭feature-request
Possible option to force firing updated model event
is this what you are looking for?
18 replies
NNormal
Created by cryptomax on 6/6/2024 in #💭feature-request
Possible option to force firing updated model event
[RealtimeModel]
public partial class MatchmakingModel
{
[RealtimeProperty(1, true)]
private int value;

public delegate void ModelUpdatedHandler();
public event ModelUpdatedHandler OnModelUpdatedHandler;

[RealtimeCallback(RealtimeModelEvent.OnDidReadProperties)]
public void OnModelUpdatedEvent(PropertyChangeSet changes)
{
OnModelUpdatedHandler?.Invoke();
}
}
[RealtimeModel]
public partial class MatchmakingModel
{
[RealtimeProperty(1, true)]
private int value;

public delegate void ModelUpdatedHandler();
public event ModelUpdatedHandler OnModelUpdatedHandler;

[RealtimeCallback(RealtimeModelEvent.OnDidReadProperties)]
public void OnModelUpdatedEvent(PropertyChangeSet changes)
{
OnModelUpdatedHandler?.Invoke();
}
}
this will trigger OnModelUpdated everytime the model read properties from the remote model, basically each network frame.
18 replies
NNormal
Created by cryptomax on 6/6/2024 in #💭feature-request
Possible option to force firing updated model event
isn't this possible with RealtimeCallbackAttribute?
18 replies
NNormal
Created by Kevin on 5/30/2024 in #🤝ask-a-question
Transform not synced
If you don't spawn with preventOwnershipTakeover you don't even need to clear ownership. You just request ownership when somebody wants to modify the transform
12 replies
NNormal
Created by Kevin on 5/30/2024 in #🤝ask-a-question
Transform not synced
Yes, you can
12 replies
NNormal
Created by Kevin on 5/30/2024 in #🤝ask-a-question
Transform not synced
You need to request ownership of the RealtimeTransform, you can leave the RealtimeView with no owner. I think only RealtimeModels can be modified without ownership
12 replies
NNormal
Created by Andrei Vaduva on 5/21/2024 in #🤝ask-a-question
Can i set RealtimeView's scene view UUID?
if anybody needs this, i opened the scene with a text editor and changed it there directly
6 replies
NNormal
Created by Andrei Vaduva on 5/8/2024 in #🤝ask-a-question
RequestOwnership not working
@Normcore Assistant when throwing a rigidbody, while the rigidbody has a velocity, if i change the ownership from client 1 (thrower) to client 2, client 2 will see everything smooth but client 1 will see a stutter, like the ball is going back a bit then continues the simulation.
23 replies
NNormal
Created by Andrei Vaduva on 5/8/2024 in #🤝ask-a-question
RequestOwnership not working
well that didn't help 😅
23 replies
NNormal
Created by Andrei Vaduva on 5/8/2024 in #🤝ask-a-question
RequestOwnership not working
@Normcore Assistant i have an OnUngrab -> that sets a rigidbody velocities and i want right after i set the velocities to change the ownership to the other player (it's a 2 player game) so that the physics are simulated by the other side. If i set the velocities and then run SetOwnership(client2) the ball remains stuck in the air. If i set the velocities and on the next frame i run SetOwnership(client2) the ball simulates but the owner quickly changes to Remote Client then back to Local client
23 replies
NNormal
Created by Andrei Vaduva on 5/8/2024 in #🤝ask-a-question
RequestOwnership not working
@Normcore Assistant if client 1 has ownership, can client 2 request ownership? I'm trying to pass a ball from one player to another and it should maintain ownership until player 2 grabs the object
23 replies
NNormal
Created by Andrei Vaduva on 5/7/2024 in #🤝ask-a-question
MetaAvatar breaks recentering
ok, maybe this will help others. The NormalMetaLocalAvatar has a SampleInputManager which if it doesn't have the OVRCameraRig set, it will change the trackingOrigin to Floor instead of Stage
6 replies